[MacRuby-devel] Regexp possible bug
Renzo Borgatti
reborgml at gmail.com
Thu Jul 2 03:35:09 PDT 2009
Hi,
If you create a file simple.rb and put the following line inside:
puts ("a at 0ƒz" =~ /\x40/).inspect
and then run with: macruby simple.rb I have the following:
$ macruby simple.rb
simple.rb:1:in `<main>': regexp preprocess failed: too short escaped
multibyte character (ArgumentError)
while it runs fine on ruby MRI (prints 1). The problem seems to be the use
of hex/octals in the regexp but only when the string contains unicode chars.
If you remove the "ƒ" everything goes as expected. Should I file a bug for
this? Let me know,
Thanks
Renzo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090702/1937932d/attachment.html>
More information about the MacRuby-devel
mailing list