File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ Tue Jul 8 00:37:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
2
+
3
+ * ruby.c (process_options): no need to call rb_w32_parse_cmdline() if
4
+ locale == default_external.
5
+
1
6<
9A79
/code>
Tue Jul 8 00:33:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
2
7
3
8
* ruby.c (process_options): re-set e_script.
Original file line number Diff line number Diff line change @@ -1102,7 +1102,8 @@ process_options(VALUE arg)
1102
1102
}
1103
1103
rb_enc_set_default_external (rb_enc_from_encoding (enc ));
1104
1104
#ifdef _WIN32
1105
- if ((argc = rb_w32_parse_cmdline (& argv , rb_enc_name (enc ))) != 0 ) {
1105
+ if (enc != lenc &&
1106
+ (argc = rb_w32_parse_cmdline (& argv , rb_enc_name (enc ))) != 0 ) {
1106
1107
if (opt -> e_script && opt -> e_script_pos ) {
1107
1108
opt -> e_script = rb_str_new (0 , 0 );
1108
1109
for (i = 0 ; i < RARRAY_LEN (opt -> e_script_pos ); ++ i ) {
You can’t perform that action at this time.
0 commit comments