1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ruby.c (proc_optionc): -Kn means ASCII-8BIT.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-01-23 16:08:04 +00:00
parent 5e3bb6c3ae
commit ac7794478c
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@ Thu Jan 24 01:00:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (parser_str_new, rb_intern3): ascii only string literal is
US-ASCII.
* ruby.c (proc_optionc): -Kn means ASCII-8BIT.
Wed Jan 23 23:54:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
* sprintf.c: fix comment. [ruby-dev:33275]

2
ruby.c
View file

@ -719,7 +719,7 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
enc_name = "UTF-8";
break;
case 'N': case 'n': case 'A': case 'a':
enc_name = "US-ASCII";
enc_name = "ASCII-8BIT";
break;
}
if (enc_name) {