Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Error using other languages #106

Closed
artemgurzhii opened this issue Dec 25, 2016 · 11 comments
Closed

Error using other languages #106

artemgurzhii opened this issue Dec 25, 2016 · 11 comments

Comments

@artemgurzhii
Copy link

I'm getting this error
screen shot 2016-12-25 at 15 28 12 when I'm not using English.

@Arcanemagus
Copy link
Member

What version of Ruby are you using? The PR you linked above isn't the proper way to set the encoding on any version I know of.

@artemgurzhii
Copy link
Author

ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]

@Arcanemagus
Copy link
Member

I'm not sure what the issue is then as this package is already setting the encoding in a manner that should work just fine in that version...

@artemgurzhii
Copy link
Author

I have uninstalled and then installed this packege, but still getting this error. screen shot 2017-01-06 at 23 12 50

@SpaceWhite
Copy link

I add encoding : utf-8 and it solves the error
dsa
untitled

@artemgurzhii
Copy link
Author

artemgurzhii commented Jan 9, 2017

@SpaceWhite Is everything else working properly?

@Arcanemagus
Copy link
Member

Thanks to the notes from @wdspkr in #112 we now know that on Windows and Linux the option is -Eutf-8, which is what was used in this package... however for some bizarre reason on macOS the option is -E utf8 so it's likely that the encoding specification wasn't working at all on macOS.

@Arcanemagus
Copy link
Member

Closing as a duplicate of #103.

@artemgurzhii
Copy link
Author

artemgurzhii commented Mar 23, 2017

@Arcanemagus How about this?

let encoding = '-Eutf-8';
if (process.env._system_name === 'OSX') {
  encoding = '-E utf8';
}

const execArgs = ['-wc', encoding];

@artemgurzhii
Copy link
Author

It works for me!

@Arcanemagus
Copy link
Member

See comment in your #114 PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants