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

ruby-changes:12060

From: nobu <ko1@a...>
Date: Thu, 18 Jun 2009 01:31:26 +0900 (JST)
Subject: [ruby-changes:12060] Ruby:r23729 (trunk): * file.c (file_expand_path): drive letter is ascii only.

nobu	2009-06-18 01:29:22 +0900 (Thu, 18 Jun 2009)

  New Revision: 23729

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

  Log:
    * file.c (file_expand_path): drive letter is ascii only.
      [ruby-dev:38612]

  Modified files:
    trunk/ChangeLog
    trunk/file.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23728)
+++ ChangeLog	(revision 23729)
@@ -1,3 +1,8 @@
+Thu Jun 18 01:29:16 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* file.c (file_expand_path): drive letter is ascii only.
+	  [ruby-dev:38612]
+
 Thu Jun 18 01:09:27 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (ridir, RI_BASE_NAME): fixed for path expansion.
Index: file.c
===================================================================
--- file.c	(revision 23728)
+++ file.c	(revision 23729)
@@ -2745,6 +2745,7 @@
 	    memcpy(p, s, 2);
 	    p += 2;
 	    s += 2;
+	    rb_enc_associate_index(result, rb_usascii_encindex());
 	}
 	else {
 	    /* specified drive, but not full path */

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

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