From: Thomas Leitner Date: 2010-04-20T22:37:44+09:00 Subject: [ruby-core:29658] [Bug #3181] Possible regexp regression in 1.9.1-p378 Bug #3181: Possible regexp regression in 1.9.1-p378 http://redmine.ruby-lang.org/issues/show/3181 Author: Thomas Leitner Status: Open, Priority: Normal ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0] Hi, there seems to be some sort of regression in 1.9.1-p378 regarding regular expressions and I18N support. Example program: # -*- coding: utf-8 -*- puts "Should match" md = /\w/u.match("������") p md.to_a Example output: jruby 1.5.0.RC1 (ruby 1.8.7 patchlevel 249) (2010-04-14 0b08bc7) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [x86_64-java] Should match at index 0 ["\303\274"] rubinius 1.0.0-rc4 (1.8.7 release 2010-03-31 JI) [x86_64-apple-darwin10.2.0] Should match at index 0 ["\303\274"] ruby 1.8.6 (2010-02-05 patchlevel 399) [i686-darwin10.2.0] Should match at index 0 ["\303\274"] ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10.2.0] Should match at index 0 ["\303\274"] ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.2.0] Should match at index 0 ["��"] ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10.2.0] Should match at index 0 [] ruby 1.9.2dev (2009-07-18 trunk 24186) [i386-darwin10.2.0] Should match at index 0 ["��"] Best regards, Thomas ---------------------------------------- http://redmine.ruby-lang.org