[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] [PATCH] fixed am/pm in thread-list-mode for ruby1.8



Excerpts from Eric Sherman's message of Thu Dec 31 22:03:40 +0100 2009:
> Excerpts from William Morgan's message of Thu Dec 31 15:14:50 -0500 2009:
> > Reformatted excerpts from Eric Sherman's message of 2009-12-31:
> > > %P in 1.8.7 displays a literal "P" always, whereas %P in 1.9 display am/pm.
> > 
> > That's not the case for me. I get an am/pm for 1.8.7 patch levels 174
> > and 72 (the two I have on hand). Unless there's some weird Debian
> > patching going on.
> > 
> > Can anyone else confirm?
> 
> Here's a simple test for others to try:
> 
>     $ ruby --version
>     ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
>     $ irb
>     irb(main):001:0> RUBY_VERSION
>     => "1.8.7"
>     irb(main):002:0> Time.now().strftime("%l:%M%P")
>     => " 3:58P"
>     irb(main):003:0> quit
>     $ ruby1.9 --version
>     ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10]
>     $ irb1.9 irb(main):001:0> RUBY_VERSION
>     => "1.9.1"
>     irb(main):002:0> Time.now().strftime("%l:%M%P")
>     => " 3:58pm"

# ruby --version
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
# ruby -e 'puts Time.now().strftime("%l:%M%P")'
10:21pm

# ruby1.9 --version
ruby 1.9.0 (2008-10-04 revision 19669) [x86_64-linux]
# ruby1.9 -e 'puts Time.now().strftime("%l:%M%P")'
10:22pm

That's on Ubuntu Karmic.
-- 
A: Because it destroys the flow of conversation.
Q: Why is top posting dumb?

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel