mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (proc_options): allow space after -E (encoding) option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
15112cf003
commit
3493a66ec6
2 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,10 @@ Mon Oct 22 11:03:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
|
||||
* include/ruby/encoding.h (rb_enc_compatible): prototype.
|
||||
|
||||
Mon Oct 22 19:24:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ruby.c (proc_options): allow space after -E (encoding) option.
|
||||
|
||||
Sun Oct 21 18:29:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
|
||||
|
|
3
ruby.c
3
ruby.c
|
@ -689,7 +689,8 @@ proc_options(int argc, char **argv, struct cmdline_options *opt)
|
|||
|
||||
case 'E':
|
||||
if (!*++s) {
|
||||
rb_raise(rb_eRuntimeError, "missing argument for -E");
|
||||
s = argv[1];
|
||||
argc--, argv++;
|
||||
}
|
||||
goto encoding;
|
||||
|
||||
|
|
Loading…
Reference in a new issue