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
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to