ruby-changes:37621
From: naruse <ko1@a...>
Date: Mon, 23 Feb 2015 18:32:43 +0900 (JST)
Subject: [ruby-changes:37621] naruse:r49702 (trunk): zone may be ASCII-8BIT on Windows [Bug #10887]
naruse 2015-02-23 18:32:27 +0900 (Mon, 23 Feb 2015) New Revision: 49702 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49702 Log: zone may be ASCII-8BIT on Windows [Bug #10887] Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 49701) +++ time.c (revision 49702) @@ -4194,7 +4194,7 @@ time_isdst(VALUE time) https://github.com/ruby/ruby/blob/trunk/time.c#L4194 static VALUE time_zone_name(const char *zone) { - VALUE name = rb_usascii_str_new_cstr(zone); + VALUE name = rb_usascii_str_new_cstr(zone); /* zone may be ASCII-8BIT on Windows */ if (!rb_enc_str_asciionly_p(name)) { name = rb_external_str_with_enc(name, rb_locale_encoding()); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/