[前][次][番号順一覧][スレッド一覧]

ruby-changes:15037

From: matz <ko1@a...>
Date: Sun, 14 Mar 2010 07:23:34 +0900 (JST)
Subject: [ruby-changes:15037] Ruby:r26913 (trunk): * file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent

matz	2010-03-14 07:23:02 +0900 (Sun, 14 Mar 2010)

  New Revision: 26913

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26913

  Log:
    * file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent
      infinite loop on some platform. [ruby-dev:40629]

  Modified files:
    trunk/ChangeLog
    trunk/file.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26912)
+++ ChangeLog	(revision 26913)
@@ -1,3 +1,8 @@
+Sun Mar 14 07:20:17 2010  Yukihiro Matsumoto  <matz@r...>
+
+	* file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent
+	  infinite loop on some platform. [ruby-dev:40629]
+
 Sun Mar 14 02:40:38 2010  Tanaka Akira  <akr@f...>
 
 	* tool/transcode-tblgen.rb: reject ambiguous mapping.
Index: file.c
===================================================================
--- file.c	(revision 26912)
+++ file.c	(revision 26913)
@@ -2998,7 +2998,7 @@
     return result;
 }
 
-#define EXPAND_PATH_BUFFER() rb_filesystem_str_new(0, MAXPATHLEN + 2)
+#define EXPAND_PATH_BUFFER() rb_usascii_str_new(0, MAXPATHLEN + 2)
 
 #define check_expand_path_args(fname, dname) \
     ((fname = rb_get_path(fname)), \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]