Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with encoding #9

Open
stasoid opened this issue Aug 20, 2018 · 0 comments
Open

Problem with encoding #9

stasoid opened this issue Aug 20, 2018 · 0 comments

Comments

@stasoid
Copy link

stasoid commented Aug 20, 2018

If file contains UTF-8 multibyte characters Hexagony behaves differently on Linux and Windows because default encoding on Linux is UTF-8, and on Windows it's something else.

On Linux it treats those characters atomically, on Windows each byte is treated separately.

As I/O is done byte-wise I assume interpreter on Linux behaves not as intended.

It can be fixed by reading in binary mode, something like File.open(ARGV[0],"rb").read instead of ARGF.read in interpreter.rb.

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

No branches or pull requests

1 participant