[ruby-core:68272] [Ruby trunk - Bug #10887] [Open] Time#zone encoding is ASCII-8BIT instead of intended US-ASCII

From: nobu@...
Date: 2015-02-24 02:45:28 UTC
List: ruby-core #68272
Issue #10887 has been updated by Nobuyoshi Nakada.

Status changed from Closed to Open

Japanese edition.

~~~
$ ./ruby -v -e 'p Time.now.zone'
ruby 2.3.0dev (2015-02-24 trunk 49709) [x64-mswin64_120]
"\x93\x8C\x8B\x9E (\x95W\x8F\x80\x8E\x9E)"
~~~

----------------------------------------
Bug #10887: Time#zone encoding is ASCII-8BIT instead of intended US-ASCII
https://bugs.ruby-lang.org/issues/10887#change-51626

* Author: Benoit Daloze
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED
----------------------------------------
    $ ruby -ve 'p Time.now.zone.encoding'
    ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
    #<Encoding:ASCII-8BIT>

Per r46907 it was intended to be US-ASCII.

Already fixed by r49693, please backport to at least 2.2.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next