You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We (you) can fix this but I find MRI's output to be strange. You would think their output on inspect would be valid Ruby syntax? Makes me wonder if this is our bug or theirs?
I thought wrong. I think that this cause is Symbol#inspect rather than Hash#inspect.
The following symbol_test.rb differs from MRI Ruby. The different result occurs in the case of UTF8 string symbol.
symbol_test.rb
# encoding: utf-8
p :"Ãa1".inspect
p :"a1".inspect
p :"1".inspect
k77ch7
changed the title
Hash#inspect differs from MRI Ruby 2.2.0; This problem occurs if Hash has double-quoted UTF8 key.
Hash#inspect differs from MRI Ruby 2.2.1; This problem occurs if Hash has double-quoted UTF8 key.
Mar 27, 2015
k77ch7
changed the title
Hash#inspect differs from MRI Ruby 2.2.1; This problem occurs if Hash has double-quoted UTF8 key.
Hash#inspect differs from MRI Ruby 2.2.1; This problem occurs if Hash has double-quoted UTF8 symbol key.
Apr 21, 2015
The following test.rb differs from MRI Ruby 2.2.1 on JRuby master.
test.rb
MRI Ruby 2.2.1
JRuby master
My env
The text was updated successfully, but these errors were encountered: