summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-04 02:54:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-04 02:54:32 +0000
commit9e1b9b9c8f1bd72315466e66176559de58552e16 (patch)
tree2d300ddafe848ca7f9c4d7b967e699059c43059c /hash.c
parent18cf70ebf636b9754760b12961bebb125af6ec39 (diff)
hash.c: set encoding
* hash.c (env_assoc): the encoding of the value should be the locale, as well as other methods, [], fetch, values, etc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55811 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 963d9aed3f..d6bfc8a613 100644
--- a/hash.c
+++ b/hash.c
@@ -3899,7 +3899,7 @@ env_assoc(VALUE env, VALUE key)
s = env_name(key);
e = getenv(s);
- if (e) return rb_assoc_new(key, rb_tainted_str_new2(e));
+ if (e) return rb_assoc_new(key, env_str_new2(e));
return Qnil;
}