JoshCheek / seeing_is_believing

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

Encoding variable is wrong #33

Closed JoshCheek closed 9 years ago

JoshCheek commented 10 years ago

-Ku is deprecated on MRI and everywhere else.

I think Rbx uses -U and -E, I think MRI uses -E something or other

Probably this is all working incidentally due to UTF being turned on by default or something. IDK, look into it at some point.

JoshCheek commented 9 years ago

I don't think this is actually true. I think -Ku is the encoding of the source file (__ENCODING__), -U is the "default internal encoding", which I think is what IO streams transcode their input to, and -E allows you to set both default internal and default external encodings, so some overlap with -U on that one.