Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


MatchData.begin(n) always returns 0 in jruby- #222

larryzhao opened this Issue · 1 comment

2 participants

Larry Zhao Charles Oliver Nutter
Larry Zhao

This problem only happens in, see gist:, it is working in jruby-1.6.7 and in jruby-1.7.0.preview1

Is it possible to have this fixed also in jruby-

Thanks a lot.

Charles Oliver Nutter

Actually it does not appear to be working in 1.6.7 either. However we are not doing any more releases of 1.6.x, so we can finish up JRuby 1.7. I will mark this issue closed for 1.7.

system ~/projects/jruby $ rvm jruby-1.6.7 do ruby --1.9 blah.rb
==== Text in English ====
#<MatchData "@chichi dog dog" 1:"@" 2:"chichi" 3:" dog dog">
1. 11
2. 12
3. 18
==== Text in Chinese ====
#<MatchData "@chichi 狗狗" 1:"@" 2:"chichi" 3:" 狗狗">
1. 0
2. 0
3. 0
==== Text in Japanese ====
#<MatchData "@chichi ドッグ" 1:"@" 2:"chichi" 3:" ドッグ">
1. 0
2. 0
3. 0
Charles Oliver Nutter headius closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.