ruby-changes:8817
From: matz <ko1@a...>
Date: Tue, 25 Nov 2008 13:42:25 +0900 (JST)
Subject: [ruby-changes:8817] Ruby:r20353 (trunk): * strftime.c (rb_strftime): "%^P" should convert to upper case.
matz 2008-11-25 13:42:11 +0900 (Tue, 25 Nov 2008) New Revision: 20353 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20353 Log: * strftime.c (rb_strftime): "%^P" should convert to upper case. [ruby-dev:37180] Modified files: trunk/ChangeLog trunk/strftime.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20352) +++ ChangeLog (revision 20353) @@ -1,3 +1,8 @@ +Tue Nov 25 10:35:29 2008 Yukihiro Matsumoto <matz@r...> + + * strftime.c (rb_strftime): "%^P" should convert to upper case. + [ruby-dev:37180] + Tue Nov 25 07:51:18 2008 Yukihiro Matsumoto <matz@r...> * strftime.c (FMT): use "%0d" formatter for zero padding, not "%.d". Index: strftime.c =================================================================== --- strftime.c (revision 20352) +++ strftime.c (revision 20353) @@ -404,7 +404,7 @@ case 'p': /* AM or PM based on 12-hour clock */ case 'P': /* am or pm based on 12-hour clock */ if ((*format == 'p' && (flags & BIT_OF(CHCASE))) || - (*format == 'P' && !(flags & BIT_OF(CHCASE)))) { + (*format == 'P' && !(flags & (BIT_OF(CHCASE)|BIT_OF(UPPER))))) { flags &= ~(BIT_OF(UPPER)|BIT_OF(CHCASE)); flags |= BIT_OF(LOWER); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/