regular expressions + regexp = incorrect results. 
--------------------------------------------------

                 Key: JRUBY-5512
                 URL: http://jira.codehaus.org/browse/JRUBY-5512
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6RC2
            Reporter: Linus Sellberg


jruby --1.9 -S irb

>> "üöäå".match( /\w/)[0]     
=> "\xC3\xBC"

Dunno what to do here[*], but this is not correct. 

[*] in MRI 1.9 \w only matches ascii per default :(. Would make more sense to 
use the default encoding for strings when deciding on what to use in regexps 
imo. 

-- 
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