Forum: Ruby MONTHNAMES

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A0eee794e60f2555d410b8accb674ffb?d=identicon&s=25 Les Nightingill (lazylester)
on 2006-04-02 02:05
I'm getting 3 unprintable characters after April when use
Date::MONTHNAMES. So I get JanuaryFebruaryMarchAprilxxxMayJune....etc
but the 3 'x's are unprintable characters!! What is this April fool
doing wrong?
It the same if I use strftime, or mydate.month.
thanks in advance
Be13d49ea40add75e564bef96b323caf?d=identicon&s=25 13 (Guest)
on 2006-04-02 13:15
(Received via mailing list)
Hi,

Maybe you have corrupted Ruby installation or just corrupted date.rb
file.
I have no unprintable characters here:

>> require 'date'
=> true
>> Date::MONTHNAMES
=> [nil, "January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"]

--
Martins
A0eee794e60f2555d410b8accb674ffb?d=identicon&s=25 Les Nightingill (lazylester)
on 2006-04-02 23:22
13 wrote:
> Hi,
>
> Maybe you have corrupted Ruby installation or just corrupted date.rb
> file.
> Martins

Thanks, Martins... that's an interesting thing. I think something got
corrupted in memory and RadRails didn't reload after the corruption.
Today (same code) the problem is not there. Yesterday I checked the disk
file date.rb and it was uncorrupted but the spurious chars were present.

Oh well... lesson learned: shut down RadRails and restart if file
corruption is suspected.
This topic is locked and can not be replied to.