ruby-changes:9559
From: usa <ko1@a...>
Date: Sat, 27 Dec 2008 20:28:37 +0900 (JST)
Subject: [ruby-changes:9559] Ruby:r21099 (trunk): * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size
usa 2008-12-27 20:28:18 +0900 (Sat, 27 Dec 2008) New Revision: 21099 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21099 Log: * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size is 2, not 0, because it will be converted to "". Modified files: trunk/ChangeLog trunk/win32/win32.c Index: ChangeLog =================================================================== --- ChangeLog (revision 21098) +++ ChangeLog (revision 21099) @@ -1,3 +1,8 @@ +Sat Dec 27 20:26:59 2008 NAKAMURA Usaku <usa@r...> + + * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size + is 2, not 0, because it will be converted to "". + Sat Dec 27 19:40:56 2008 Nobuyoshi Nakada <nobu@r...> * process.c (after_exec): needs to reset before restart timer Index: win32/win32.c =================================================================== --- win32/win32.c (revision 21098) +++ win32/win32.c (revision 21099) @@ -715,7 +715,7 @@ } } len += p - *t + n + 1; - if (quote) len += 2; + if (p - *t == 0 || quote) len += 2; } return len; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/