[Ironruby-core] Bug with chomp in IronRuby RC2
Martin Smith
martin.smith.jr at gmail.com
Tue Feb 23 13:45:13 EST 2010
Hello,
Here's a bug we've run into with chomp. If you run the following code:
abc = "/toheunthª¶˙¨˙≥˜≥˜†˙≤ß߆˙ƒƒƒƒ".to_clr_string
abc.chomp('\\').chomp('/')
puts abc
(where abc is really just any string with non-english characters). and
you'll get the error:
IronRuby.Libraries:0:in `EndsWith': Array index is out of range. (IndexError)
from IronRuby.Libraries:0:in `InternalChomp'
from :0:in `chomp'
from /Users/martin/Kode/rbtest/test-intl.rb:3
If you remove the to_clr_string everything works fine.
Otherwise RC2 looks pretty great! It seems fater and better!
Thanks,
Martin
More information about the Ironruby-core
mailing list