From 9ed35ae7930c57b63b218cda716fcf01aa56ac88 Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 12 Oct 2008 23:03:17 +0000 Subject: * 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 --- ruby.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 67b5a4fd3a..0b4929d88a 100644 --- a/ruby.c +++ b/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; -- cgit v1.2.3