Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre2
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Java Integration
-
Labels:None
-
Environment:Jruby 1.7.0 pre2
OS X 10.8
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
-
Patch Submitted:Yes
-
Number of attachments :
Description
runnning follow code
coding: utf-8
str = "あいうえおかきく‘“"
s = str.slice(3..-1) # => "えおかきく‘“"
s.index(/[^ ]/) # => 3
but in CRuby 1.9.3
coding: utf-8
str = "あいうえおかきく‘“"
s = str.slice(3..-1)
s.index(/[^ ]/) # => 0
String#rindex have similar problem.
attachment patch file(and spec) will fix this problem.
I'm sorry. Japanese Character can't display...
I attach the test program to Attchments.