Ruby 1.8 compatibility: /#{/\w/}/uo does not work as expected
-------------------------------------------------------------

                 Key: JRUBY-4037
                 URL: http://jira.codehaus.org/browse/JRUBY-4037
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.3.1
         Environment: Mac OS X
            Reporter: Kornelius Kalnbach


JRuby gives me different results than Ruby 1.8.6 (and 1.8.7) here:

~/ruby/coderay ruby -e 'p "ä"[/#{/\w/}/uo]'
"\303\244"
~/ruby/coderay jruby -e 'p "ä"[/#{/\w/}/uo]'
nil
~/ruby/coderay jruby -v
jruby 1.3.1 (ruby 1.8.6p287) (2009-09-08 6586) (Java HotSpot(TM) 64-Bit Server 
VM 1.6.0_15) [x86_64-java]

The problem seems to be that /o somehow treats the embedded regexp differently.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to