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

ruby-changes:12360

From: naruse <ko1@a...>
Date: Mon, 13 Jul 2009 00:04:56 +0900 (JST)
Subject: [ruby-changes:12360] Ruby:r24056 (trunk): ENV is now locale encoding.

naruse	2009-07-13 00:04:33 +0900 (Mon, 13 Jul 2009)

  New Revision: 24056

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

  Log:
    ENV is now locale encoding.
    * hash.c (env_str_new): use rb_locale_str_new instead of
      rb_tainted_str_new. rb_locale_str_new set string locale
      encoding and tainted.

  Modified files:
    trunk/ChangeLog
    trunk/hash.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24055)
+++ ChangeLog	(revision 24056)
@@ -1,3 +1,9 @@
+Sun Jul 12 23:51:39 2009  NARUSE, Yui  <naruse@r...>
+
+	* hash.c (env_str_new): use rb_locale_str_new instead of
+	  rb_tainted_str_new. rb_locale_str_new set string locale
+	  encoding and tainted.
+
 Sun Jul 12 23:56:40 2009  Tadayoshi Funaba  <tadf@d...>
 
 	* complex.c: added some shortcuts.
@@ -41,7 +47,7 @@
 
 Sat Jul 11 02:37:37 2009  Nobuyoshi Nakada  <nobu@r...>
 
-	* random.c (limited_rand): expands to long before shift so tha
+	* random.c (limited_rand): expands to long before shift so that
 	  the result does not overflow.
 
 Sat Jul 11 00:16:27 2009  Nobuyoshi Nakada  <nobu@r...>
Index: hash.c
===================================================================
--- hash.c	(revision 24055)
+++ hash.c	(revision 24056)
@@ -1857,7 +1857,7 @@
 static VALUE
 env_str_new(const char *ptr, long len)
 {
-    VALUE str = rb_tainted_str_new(ptr, len);
+    VALUE str = rb_locale_str_new(ptr, len);
 
     rb_obj_freeze(str);
     return str;

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

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