Bug #1833: Class name encoding
http://redmine.ruby-lang.org/issues/show/1833

Author: Tomas Matousek
Status: Open, Priority: Normal
ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]

Encoding of class name is not preserved.

#encoding: UTF-8

class C??
end

p C??.name           #=> "C\xC3\x9F"
p C??.name.encoding  #=> #<Encoding:ASCII-8BIT>

I expect the encoding of the name to be UTF-8.


----------------------------------------
http://redmine.ruby-lang.org