[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 William Morgan's message of Fri Jan 01 09:13:08 -0600 2010:
> Reformatted excerpts from Eric Sherman's message of 2009-12-31:
> > Hmm.  Maybe this issue only exists on OSX.
> 
> I suspect so. Can you provide a patch that uses the downcase trick and
> doesn't check for the ruby version or the OS? (Maybe with a helpful
> comment.) That should work everywhere, lame as it may be.

I don't know if you need any more examples of this, but I'm running Mac OS
10.6, and can reproduce this with the three different versions of ruby I
happen to have installed.

Apple supplied ruby:
$ /usr/bin/ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
$ /usr/bin/ruby -e 'puts Time.now().strftime("%l:%M%P")'
11:27P

Ruby from the MacPorts package manager, patchlevel 174:
$ ruby --version
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
$ ruby -e 'puts Time.now().strftime("%l:%M%P")'
11:25P

And [MacRuby][1], which is completely beta everything, but is 1.9:
$ macruby --version
MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]
$ macruby -e 'puts Time.now().strftime("%l:%M%P")'
11:25P

I'm pretty sure that *should* work on MacRuby, but it's not. I think that's
possibly their fault though. I guess I could report it as a bug to them then.
I'm not really using that ruby version for anything, so I don't know how
complete it is.

[1]: http://www.macruby.org/

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