mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (proc_options): add -U command line option to specify
utf-8 as default_internal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a6a0188bc
commit
9ed35ae793
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Oct 13 07:54:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ruby.c (proc_options): add -U command line option to specify
|
||||
utf-8 as default_internal.
|
||||
|
||||
Mon Oct 13 07:42:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* transcode.c (str_transcode0): String#encode() with no encoding
|
||||
|
|
4
ruby.c
4
ruby.c
|
@ -758,6 +758,10 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
|
|||
if (!*++s) goto next_encoding;
|
||||
goto encoding;
|
||||
|
||||
case 'U':
|
||||
opt->intern.enc.name = rb_str_new2("utf-8");
|
||||
break;
|
||||
|
||||
case 'K':
|
||||
if (*++s) {
|
||||
const char *enc_name = 0;
|
||||
|
|
Loading…
Reference in a new issue