JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.3k stars 54 forks source link

Encodings never die :( #109

Closed JoshCheek closed 7 years ago

JoshCheek commented 7 years ago

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)