ruby-changes:20526
From: knu <ko1@a...>
Date: Sun, 17 Jul 2011 18:32:14 +0900 (JST)
Subject: [ruby-changes:20526] knu:r32574 (ruby_1_8): Backport r24500; fixes #2556.
knu 2011-07-17 18:32:04 +0900 (Sun, 17 Jul 2011) New Revision: 32574 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32574 Log: Backport r24500; fixes #2556. * lib/date.rb (complete_frags): Monday must be suitable for %W's default day. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/lib/date.rb Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 32573) +++ ruby_1_8/ChangeLog (revision 32574) @@ -1,3 +1,8 @@ +Sun Jul 17 18:24:22 2011 Tadayoshi Funaba <tadf@d...> + + * lib/date.rb (complete_frags): Monday must be suitable for %W's + default day. + Sun Jul 17 17:52:19 2011 Yukihiro Matsumoto <matz@r...> * numeric.c (flo_cmp): Infinity is greater than any bignum Index: ruby_1_8/lib/date.rb =================================================================== --- ruby_1_8/lib/date.rb (revision 32573) +++ ruby_1_8/lib/date.rb (revision 32574) @@ -879,7 +879,7 @@ elem[e] = d.__send__(e) end elem[:wnum1] ||= 0 - elem[:wday] ||= 0 + elem[:wday] ||= 1 end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/