ruby-changes:9331
From: nobu <ko1@a...>
Date: Fri, 19 Dec 2008 15:52:15 +0900 (JST)
Subject: [ruby-changes:9331] Ruby:r20869 (trunk): * ruby.c (process_options): get rid of warning on DOSISH.
nobu 2008-12-19 15:51:52 +0900 (Fri, 19 Dec 2008) New Revision: 20869 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20869 Log: * ruby.c (process_options): get rid of warning on DOSISH. Modified files: trunk/ChangeLog trunk/ruby.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20868) +++ ChangeLog (revision 20869) @@ -1,3 +1,7 @@ +Fri Dec 19 15:51:48 2008 Nobuyoshi Nakada <nobu@r...> + + * ruby.c (process_options): get rid of warning on DOSISH. + Fri Dec 19 07:45:37 2008 Yukihiro Matsumoto <matz@r...> * error.c (exc_equal): duck typing equal to make it transitive. Index: ruby.c =================================================================== --- ruby.c (revision 20868) +++ ruby.c (revision 20869) @@ -1281,7 +1281,7 @@ 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/