diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-12 15:04:33 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-12 15:04:33 +0000 |
| commit | 1c61a4a8a6ac61e6c1cbd705ec518d06cf49951f (patch) | |
| tree | 993e1588b2ab14d791fac3c829de42623e74a722 | |
| parent | ec5da19e86081b4875bde9412b915e3fcf433792 (diff) | |
| download | ruby-1c61a4a8a6ac61e6c1cbd705ec518d06cf49951f.tar.gz ruby-1c61a4a8a6ac61e6c1cbd705ec518d06cf49951f.tar.xz ruby-1c61a4a8a6ac61e6c1cbd705ec518d06cf49951f.zip | |
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
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | hash.c | 2 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Sun Jul 12 23:51:39 2009 NARUSE, Yui <naruse@ruby-lang.org> + + * 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@dotrb.org> * complex.c: added some shortcuts. @@ -41,7 +47,7 @@ Sat Jul 11 07:11:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Jul 11 02:37:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> - * 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@ruby-lang.org> @@ -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; |
