Project

General

Profile

Bug #15876

1.to_s.encoding != Encoding.default_internal

Added by grosser (Michael Grosser) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:92842]

Description

I ran into strange looking test output when I compared .to_s with an expected text, saying that the encoding was different, which is confusing/annoying especially to users that don't know how encodings work in ruby.
1.to_s.encoding should be the same as "".encoding

Also available in: Atom PDF