Issue #9652 has been updated by Eric Wong.


 usa / garbagecollect.jp wrote:
 > r45364 introduced a test failure on Windows, and r45395 didn't fix it.
 > After all, there is no portabl time zone name, I guess.
 > Doesn't someone think of a better test?
 
 Sorry about the portability problems. r45403 works for me on a GNU system.
 If all else fails, maybe only enable TZ setting tests on a few platforms
 like test/ruby/test_time_tz.rb does.

----------------------------------------
Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
https://bugs.ruby-lang.org/issues/9652#change-45932

* Author: Cantin Xu
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
* Backport: 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
Hi, there

I wrote a script to test Marshal dump/load with many time object ( see attachment ).

basic idea is:
1) A is container of time,  it contains 100,000 time instance (all Time.now).
2) dump/load A by using Marshal, expected behavior is all the time zone must same as Time.now.zone

but I get different things or unreadable code in some Time instance by calling time.zone.
mostly it's "UTF-8'.

env:  Mac 10.9.2, ruby: ruby 2.1.1-p76

PS: it's fine while A contain 10,000 time instance

---Files--------------------------------
timezone_test.rb (409 Bytes)


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