[前][次][番号順一覧][スレッド一覧]

ruby-changes:8251

From: nobu <ko1@a...>
Date: Tue, 14 Oct 2008 14:11:40 +0900 (JST)
Subject: [ruby-changes:8251] Ruby:r19779 (trunk): * ruby.c (proc_options): -U can be followed by other options.

nobu	2008-10-14 14:11:20 +0900 (Tue, 14 Oct 2008)

  New Revision: 19779

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19779

  Log:
    * ruby.c (proc_options): -U can be followed by other options.

  Modified files:
    trunk/ChangeLog
    trunk/ruby.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19778)
+++ ChangeLog	(revision 19779)
@@ -1,3 +1,7 @@
+Tue Oct 14 14:11:17 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* ruby.c (proc_options): -U can be followed by other options.
+
 Tue Oct 14 13:30:30 2008  Martin Duerst  <duerst@i...>
 
 	* enc/trans/single_byte.trans: added windows-1252
Index: ruby.c
===================================================================
--- ruby.c	(revision 19778)
+++ ruby.c	(revision 19779)
@@ -792,7 +792,8 @@
 
 	  case 'U':
 	    set_internal_encoding_once(opt, "UTF-8", 0);
-	    break;
+	    ++s;
+	    goto reswitch;
 
 	  case 'K':
 	    if (*++s) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]