diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-22 22:26:55 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-22 22:26:55 +0000 |
commit | 9759173cfc954f89a24dd96a42067161a34bd243 (patch) | |
tree | 2886db0d42f3feef29ed65dbcbb073a17e86d274 /time.c | |
parent | 6d6b33e6e5dde12f258ad85bba6475af0aab75cf (diff) | |
download | ruby-9759173cfc954f89a24dd96a42067161a34bd243.tar.gz |
* time.c: zone encoding should be US-ASCII if all 7-bits. Fix r46907.
* test/ruby/test_time.rb, test/ruby/test_time_tz.rb: Update tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4194,7 +4194,7 @@ time_isdst(VALUE time) static VALUE time_zone_name(const char *zone) { - VALUE name = rb_str_new_cstr(zone); + VALUE name = rb_usascii_str_new_cstr(zone); if (!rb_enc_str_asciionly_p(name)) { name = rb_external_str_with_enc(name, rb_locale_encoding()); } |