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

Symbol#inspect for non-US-ASCII symbols #1685

Closed
simonrussell opened this issue May 7, 2014 · 2 comments
Closed

Symbol#inspect for non-US-ASCII symbols #1685

simonrussell opened this issue May 7, 2014 · 2 comments

Comments

@simonrussell
Copy link

@simonrussell simonrussell commented May 7, 2014

Seems that US-ASCII is hard-coded somewhere for Symbol#inspect.

MRI 1.9.3-p484, 2.0.0-p353, 2.1.0:
:"\u1234".inspect
=> ":ሴ"

JRuby 1.7.11:
:"\u1234".inspect
ArgumentError: invalid byte sequence in US-ASCII
from org/jruby/RubySymbol.java:264:in inspect' from org/jruby/RubySymbol.java:253:ininspect'
from (irb):1:in evaluate' from org/jruby/RubyKernel.java:1121:ineval'
from org/jruby/RubyKernel.java:1521:in loop' from org/jruby/RubyKernel.java:1284:incatch'
from org/jruby/RubyKernel.java:1284:in catch' from /home/simon/.rvm/rubies/jruby-1.7.11/bin/irb:13:in(root)'

@k77ch7
Copy link
Contributor

@k77ch7 k77ch7 commented Dec 18, 2014

This works on master and jruby-1_7. This is duplicate of #2172.

@mkristian mkristian added this to the Invalid or Duplicate milestone Dec 18, 2014
@simonrussell
Copy link
Author

@simonrussell simonrussell commented Dec 18, 2014

I'd argue that the other bug is a duplicate of this one :) But either way, it's great to see this fixed, thanks.

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