ruby-changes:9587
From: yugui <ko1@a...>
Date: Sun, 28 Dec 2008 18:42:37 +0900 (JST)
Subject: [ruby-changes:9587] Ruby:r21127 (ruby_1_9_1): merges r21099 from trunk into ruby_1_9_1.
yugui 2008-12-28 18:42:09 +0900 (Sun, 28 Dec 2008) New Revision: 21127 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21127 Log: merges r21099 from trunk into ruby_1_9_1. * 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: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/win32/win32.c Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 21126) +++ ruby_1_9_1/ChangeLog (revision 21127) @@ -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: ruby_1_9_1/win32/win32.c =================================================================== --- ruby_1_9_1/win32/win32.c (revision 21126) +++ ruby_1_9_1/win32/win32.c (revision 21127) @@ -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/