Skip to content

Hash#inspect differs from MRI Ruby 2.2.1; This problem occurs if Hash has double-quoted UTF8 symbol key. #2713

@k77ch7

Description

@k77ch7

The following test.rb differs from MRI Ruby 2.2.1 on JRuby master.

test.rb

# encoding: utf-8
h = { "Ãa1": true }
p h

MRI Ruby 2.2.1

$ ruby ~/development/test.rb
{:Ãa1=>true}

JRuby master

$ jruby ~/development/test.rb
{:"Ãa1"=>true}

My env

jruby 9.0.0.0-SNAPSHOT (2.2.1) 2015-03-17 c9a5cca Java HotSpot(TM) 64-Bit Server VM 25.5-b02 on 1.8.0_05-b13 +jit [darwin-x86_64]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions