Project

General

Profile

Actions

Bug #5848

closed

Array#inspect having an element with non-ASCII compatible #inspect result

Added by john_firebaugh (John Firebaugh) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Backport:
[ruby-core:41931]

Description

Is this a bug?

class O
def inspect
"foo".encode!(Encoding::UTF_16BE)
end
end
=> nil
[O.new].inspect
=> "\u5B00\u6600\u6F00\u6F5D"

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0