summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-12 15:04:33 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-12 15:04:33 +0000
commit0dc7839b7f6176de843126466a97fc24a034398e (patch)
tree993e1588b2ab14d791fac3c829de42623e74a722 /hash.c
parent8d9896c3b98aba5eb86a4b9405bc661658cb0a80 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 6579a1eac2..c65d24263e 100644
--- a/hash.c
+++ b/hash.c
@@ -1857,7 +1857,7 @@ extern char **environ;
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;