diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-08-29 19:25:04 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2024-08-29 20:20:26 -0400 |
| commit | 554098303dd70adbe611eac5507277560bfa299a (patch) | |
| tree | 00724ae308ffff7061e9106d38d066e7081e88c4 /eval_error.c | |
| parent | b1c569c1936bc644e99b5892b5fc0e522b0816d9 (diff) | |
[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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11505
Diffstat (limited to 'eval_error.c')
0 files changed, 0 insertions, 0 deletions
