Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.6.6, JRuby 1.7.0.pre1
-
Component/s: Core Classes/Modules, Ruby 1.9.3, RubySpec
-
Labels:None
-
Number of attachments :
Description
8) Regexps with encoding modifiers supports /n (No encoding) with interpolation ERROR RegexpError: /.../n has a non escaped non ASCII character in non ASCII-8BIT script /Users/asari/Development/src/jruby/spec/ruby/language/regexp/encoding_spec.rb:89:in `(root)' org/jruby/RubyBasicObject.java:1753:in `instance_eval' org/jruby/RubyEnumerable.java:1313:in `all?' org/jruby/RubyArray.java:1596:in `each' /Users/asari/Development/src/jruby/spec/ruby/language/regexp/encoding_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:996:in `load' /Users/asari/Development/src/jruby/spec/ruby/language/regexp/encoding_spec.rb:56:in `files' org/jruby/RubyBasicObject.java:1753:in `instance_eval' org/jruby/RubyArray.java:1596:in `each' 9) Regexps with encoding modifiers supports /n (No encoding) with interpolation /o ERROR RegexpError: /.../n has a non escaped non ASCII character in non ASCII-8BIT script /Users/asari/Development/src/jruby/spec/ruby/language/regexp/encoding_spec.rb:93:in `(root)' org/jruby/RubyBasicObject.java:1753:in `instance_eval' org/jruby/RubyEnumerable.java:1313:in `all?' org/jruby/RubyArray.java:1596:in `each' /Users/asari/Development/src/jruby/spec/ruby/language/regexp/encoding_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:996:in `load' /Users/asari/Development/src/jruby/spec/ruby/language/regexp/encoding_spec.rb:56:in `files' org/jruby/RubyBasicObject.java:1753:in `instance_eval' org/jruby/RubyArray.java:1596:in `each'
Issue Links
- is duplicated by
-
JRUBY-6113
RegExpError during require open-uri in 1.9 mode
-
-
JRUBY-6134
[1.9] Regression in DRegexp handling affects open-uri and Bundler
-
-
JRUBY-6189
open-uri raises an encoding error in 1.9 mode
-
I'd like to help with this, though I'm no Java expert. I will try the RubySpec, though a simple script -e'x = /[\r\t\n ]+/n; y=/#
{x}/n' passed. The failure seems to be related to the encodingNone option on the regex.