ruby-changes:2264
From: ko1@a...
Date: 23 Oct 2007 00:30:10 +0900
Subject: [ruby-changes:2264] matz - Ruby:r13755 (trunk): * ruby.c (proc_options): allow space after -E (encoding) option.
matz 2007-10-23 00:29:53 +0900 (Tue, 23 Oct 2007)
New Revision: 13755
Modified files:
trunk/ChangeLog
trunk/ruby.c
Log:
* ruby.c (proc_options): allow space after -E (encoding) option.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ruby.c?r1=13755&r2=13754
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13755&r2=13754
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13754)
+++ ChangeLog (revision 13755)
@@ -9,6 +9,10 @@
* include/ruby/encoding.h (rb_enc_compatible): prototype.
+Mon Oct 22 19:24:33 2007 Yukihiro Matsumoto <matz@r...>
+
+ * ruby.c (proc_options): allow space after -E (encoding) option.
+
Sun Oct 21 18:29:17 2007 Nobuyoshi Nakada <nobu@r...>
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
Index: ruby.c
===================================================================
--- ruby.c (revision 13754)
+++ ruby.c (revision 13755)
@@ -689,7 +689,8 @@
case 'E':
if (!*++s) {
- rb_raise(rb_eRuntimeError, "missing argument for -E");
+ s = argv[1];
+ argc--, argv++;
}
goto encoding;
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml