From: Xavier Noria Date: 2007-05-25T17:10:06+09:00 Subject: Re: I think this is a regexp bug On May 25, 2007, at 9:16 AM, Daniel DeLorme wrote: > I'd greatly appreciate if anyone could explain what's up with this: > > $KCODE='u' > >> "à" =~ /à/i > => 0 > >> "à" =~ /[à]/i > => 0 > >> "ā" =~ /ā/i > => 0 > >> "ā" =~ /[ā]/i > => nil > > That has to be a bug, right? I can't reproduce it: fxn@feynman:~/tmp$ cat foo.rb $KCODE = 'u' puts "à" =~ /à/i puts "à" =~ /[à]/i puts "ā" =~ /ā/i puts "ā" =~ /[ā]/i fxn@feynman:~/tmp$ ruby foo.rb 0 0 0 0 fxn@feynman:~/tmp$ ruby -v ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.1]