ruby-changes:3668
From: ko1@a...
Date: Mon, 21 Jan 2008 20:11:11 +0900 (JST)
Subject: [ruby-changes:3668] tadf - Ruby:r15157 (trunk): * lib/date.rb (marshal_load): initialize the cache.
tadf 2008-01-21 20:10:53 +0900 (Mon, 21 Jan 2008)
New Revision: 15157
Modified files:
trunk/ChangeLog
trunk/lib/date.rb
Log:
* lib/date.rb (marshal_load): initialize the cache.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/date.rb?r1=15157&r2=15156&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15157&r2=15156&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15156)
+++ ChangeLog (revision 15157)
@@ -1,3 +1,7 @@
+Mon Jan 21 20:09:38 2008 Tadayoshi Funaba <tadf@d...>
+
+ * lib/date.rb (marshal_load): initialize the cache.
+
Mon Jan 21 19:42:42 2008 Martin Duerst <duerst@i...>
* transcode.c, enc/trans/utf_16_32.c, test/ruby/test_transcode.rb:
Index: lib/date.rb
===================================================================
--- lib/date.rb (revision 15156)
+++ lib/date.rb (revision 15157)
@@ -1482,7 +1482,10 @@
def marshal_dump() [@ajd, @of, @sg] end
# Load from Marshall format.
- def marshal_load(a) @ajd, @of, @sg, = a end
+ def marshal_load(a)
+ @ajd, @of, @sg, = a
+ @__ca__ = {}
+ end
end
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/