Thomas E Enebo created JRUBY-6433:
-------------------------------------
Summary: DRegexp with /u and non-7bit UTF-8 string bombs
Key: JRUBY-6433
URL: https://jira.codehaus.org/browse/JRUBY-6433
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.6
Reporter: Thomas E Enebo
Assignee: Thomas E Enebo
Fix For: JRuby 1.6.7
{noformat}
# encoding: utf-8
xml = ""
NAME = "."
xml =~ /(#{NAME})/u
{noformat}
The error message is both funny an sad:
{noformat}
Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp
with UTF-8 string)
=~ at org/jruby/RubyRegexp.java:1487
(root) at snippets/bugs/rexml2.rb:5
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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