Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphenes are not matched correctly using \X #4870

Closed
thallgren opened this issue Nov 28, 2017 · 2 comments
Closed

Graphenes are not matched correctly using \X #4870

thallgren opened this issue Nov 28, 2017 · 2 comments

Comments

@thallgren
Copy link

Environment

jruby-9.1.7.0 running on Linux 4.13.13-100.fc25.x86_64 #1 SMP Wed Nov 15 17:33:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Expected Behavior

\X should match the letter à in the form of a graphene encoded as U+0061 U+0300. The MRI shows the expected behavior:

$ irb
2.3.1 :001 > x = "h\u0061\u0300llo"
 => "hàllo" 
2.3.1 :002 > x =~ /h\Xllo/
 => 0 

Actual Behavior

\X does not match the graphene using JRuby.

$ irb
jruby-9.1.7.0 :001 > x = "h\u0061\u0300llo"
 => "hàllo"
jruby-9.1.7.0 :002 > x =~ /h\Xllo/
 => nil 

Corresponding issue for the jruby/joni package.

@olleolleolle
Copy link
Member

(Same in 9.1.14.0.)

@headius
Copy link
Member

headius commented Nov 28, 2017

Dupe of #4568.

@headius headius closed this as completed Nov 28, 2017
@headius headius added this to the Invalid or Duplicate milestone Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants