From 1c61a4a8a6ac61e6c1cbd705ec518d06cf49951f Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 12 Jul 2009 15:04:33 +0000 Subject: 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: http://svn.ruby-lang.org/repos/ruby/trunk@24056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 6579a1eac..c65d24263 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; -- cgit