summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-14 05:11:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-14 05:11:20 +0000
commit194114d24af26f7f1a03d94c92cafdde9dab5802 (patch)
tree4387231b5097d9dfde58bba65809cede210c7934 /ruby.c
parentdc879cd704eb6726e25448f44621b0fd3ff266bc (diff)
downloadruby-194114d24af26f7f1a03d94c92cafdde9dab5802.tar.gz
ruby-194114d24af26f7f1a03d94c92cafdde9dab5802.tar.xz
ruby-194114d24af26f7f1a03d94c92cafdde9dab5802.zip
* ruby.c (proc_options): -U can be followed by other options.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 29085979f..5420b94aa 100644
--- a/ruby.c
+++ b/ruby.c
@@ -792,7 +792,8 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
case 'U':
set_internal_encoding_once(opt, "UTF-8", 0);
- break;
+ ++s;
+ goto reswitch;
case 'K':
if (*++s) {