Skip to content

Subclasses of string loses encoding - #178

Closed
iwiznia wants to merge 1 commit into
ruby:masterfrom
iwiznia:master
Closed

Subclasses of string loses encoding#178
iwiznia wants to merge 1 commit into
ruby:masterfrom
iwiznia:master

Conversation

@iwiznia

@iwiznia iwiznia commented Jan 15, 2014

Copy link
Copy Markdown

When subclassing string, the deserialized object loses the encoding.
This is just the test, I really don't know where to fix this. Would be happy to do it if someone points me in the right direction...

@iwiznia

iwiznia commented Feb 25, 2014

Copy link
Copy Markdown
Author

Anyone up for a pair programming session to try to solve this? @tenderlove?

@iwiznia

iwiznia commented Sep 29, 2014

Copy link
Copy Markdown
Author

It would be great to try to fix this before ruby 2.2.0 gets released...

@hsbt

hsbt commented Sep 11, 2026

Copy link
Copy Markdown
Member

Closing this test-only PR. ASCII-only binary strings load back as UTF-8 whether or not they are subclasses, and changing that would alter the loaded value of existing documents.

@hsbt hsbt closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants