ruby-changes:10232
From: shyouhei <ko1@a...>
Date: Mon, 26 Jan 2009 11:12:21 +0900 (JST)
Subject: [ruby-changes:10232] Ruby:r21776 (ruby_1_8_7): merge revision(s) 19514:
shyouhei 2009-01-26 11:12:10 +0900 (Mon, 26 Jan 2009) New Revision: 21776 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21776 Log: merge revision(s) 19514: * lib/tmpdir.rb: setup buffer with nul characters instead of spaces. fixed [ruby-dev:36493] Modified files: branches/ruby_1_8_7/ChangeLog branches/ruby_1_8_7/lib/tmpdir.rb branches/ruby_1_8_7/version.h Index: ruby_1_8_7/ChangeLog =================================================================== --- ruby_1_8_7/ChangeLog (revision 21775) +++ ruby_1_8_7/ChangeLog (revision 21776) @@ -1,3 +1,8 @@ +Mon Jan 26 11:12:03 2009 NAKAMURA Usaku <usa@r...> + + * lib/tmpdir.rb: setup buffer with nul characters instead of spaces. + fixed [ruby-dev:36493] + Sun Jan 25 00:07:23 2009 Yukihiro Matsumoto <matz@r...> * lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap): Index: ruby_1_8_7/version.h =================================================================== --- ruby_1_8_7/version.h (revision 21775) +++ ruby_1_8_7/version.h (revision 21776) @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.8.7" -#define RUBY_RELEASE_DATE "2009-01-25" +#define RUBY_RELEASE_DATE "2009-01-26" #define RUBY_VERSION_CODE 187 -#define RUBY_RELEASE_CODE 20090125 -#define RUBY_PATCHLEVEL 95 +#define RUBY_RELEASE_CODE 20090126 +#define RUBY_PATCHLEVEL 96 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_TEENY 7 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 1 -#define RUBY_RELEASE_DAY 25 +#define RUBY_RELEASE_DAY 26 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: ruby_1_8_7/lib/tmpdir.rb =================================================================== --- ruby_1_8_7/lib/tmpdir.rb (revision 21775) +++ ruby_1_8_7/lib/tmpdir.rb (revision 21776) @@ -14,7 +14,7 @@ require 'Win32API' CSIDL_LOCAL_APPDATA = 0x001c max_pathlen = 260 - windir = ' '*(max_pathlen+1) + windir = "\0"*(max_pathlen+1) begin getdir = Win32API.new('shell32', 'SHGetFolderPath', 'LLLLP', 'L') raise RuntimeError if getdir.call(0, CSIDL_LOCAL_APPDATA, 0, 0, windir) != 0 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/