diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ruby.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Dec 19 15:51:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ruby.c (process_options): get rid of warning on DOSISH. + Thu Dec 18 19:31:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command @@ -1259,7 +1259,7 @@ process_options(VALUE arg) opt->script_name = rb_str_new_cstr(opt->script); opt->script = RSTRING_PTR(opt->script_name); #if defined DOSISH || defined __CYGWIN__ - translate_char(opt->script, '\\', '/'); + translate_char(RSTRING_PTR(opt->script_name), '\\', '/'); #endif rb_obj_freeze(opt->script_name); |
