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

Encodings never die :( #109

Closed
JoshCheek opened this issue Jan 8, 2017 · 0 comments
Closed

Encodings never die :( #109

JoshCheek opened this issue Jan 8, 2017 · 0 comments

Comments

@JoshCheek
Copy link
Owner

Works as a file but not when on stdin stream:

$ cat omg.rb
縧 = 1  # => 1
縧      # => 1

Example:

$ env -u LANG bin/seeing_is_believing  < omg.rb
/Users/josh/.gem/ruby/2.3.1/gems/parser-2.3.1.4/lib/parser/source/buffer.rb:164:in `source=': invalid byte sequence in US-ASCII (EncodingError)
JoshCheek added a commit that referenced this issue Jan 11, 2017
I'm not super confident in these tests :(
It's so fkn hard to test encodings.
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