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

From: eregontp@...
Date: 2015-02-23 19:29:26 UTC
List: ruby-core #68267
Issue #10887 has been updated by Benoit Daloze.


Yui NARUSE wrote:
> Applied in changeset r49702.
> 
> ----------
> zone may be ASCII-8BIT on Windows [Bug #10887]

Thanks! Do you have an example?

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

* Author: Benoit Daloze
* Status: Closed
* 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