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

ruby-changes:12006

From: nobu <ko1@a...>
Date: Fri, 12 Jun 2009 14:57:37 +0900 (JST)
Subject: [ruby-changes:12006] Ruby:r23670 (trunk): * file.c (file_expand_path): associate the input encoding when

nobu	2009-06-12 14:56:53 +0900 (Fri, 12 Jun 2009)

  New Revision: 23670

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

  Log:
    * file.c (file_expand_path): associate the input encoding when
      copying an absolute path.  [ruby-dev:38594]

  Modified files:
    trunk/ChangeLog
    trunk/file.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23669)
+++ ChangeLog	(revision 23670)
@@ -1,3 +1,8 @@
+Fri Jun 12 14:56:50 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* file.c (file_expand_path): associate the input encoding when
+	  copying an absolute path.  [ruby-dev:38594]
+
 Fri Jun 12 02:41:21 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (str_replace_shared): shared target must be frozen.
Index: file.c
===================================================================
--- file.c	(revision 23669)
+++ file.c	(revision 23670)
@@ -2793,6 +2793,7 @@
 	p = buf + (s - b);
 	BUFCHECK(bdiff >= buflen);
 	memset(buf, '/', p - buf);
+	rb_enc_copy(result, fname);
     }
     if (p > buf && p[-1] == '/')
 	--p;

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

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