Project

General

Profile

« Previous | Next » 

Revision 55409830

Added by alanwu (Alan Wu) about 1 year ago

[PRISM] For stdin scripts, use locale encoding

For example:

$ echo 'p __ENCODING__' | LANG=C ruby #<Encoding:US-ASCII> 

But, allow -K to override the source encoding.
Found by running spec/ruby/language/magic_comment_spec.rb with LANG=C.