зеркало из https://github.com/github/ruby.git
* 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:
Родитель
15112cf003
Коммит
3493a66ec6
|
@ -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.
|
* 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>
|
Sun Oct 21 18:29:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
|
* 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':
|
case 'E':
|
||||||
if (!*++s) {
|
if (!*++s) {
|
||||||
rb_raise(rb_eRuntimeError, "missing argument for -E");
|
s = argv[1];
|
||||||
|
argc--, argv++;
|
||||||
}
|
}
|
||||||
goto encoding;
|
goto encoding;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче