-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling converting UTF-32 to UTF-8 is broken [9k] [lotus] #2581
Comments
Wow, that's unexpected. This logic should be using the MRI transcoding subsystem pretty much as-is. |
Seems to be something wrong with the "dummy" encodings:
@lopex What are these dummy encodings for? |
It appears that at some point "dummy" encodings became "replicate" encodings, so I'm trying to make that change to our encoding list too. |
Bleh, opened a can of worms. Additional fixes coming in. |
Multiple fixes to jcodings and I think we're back in business. Your case works and all previous passing cases work. Will explore tags/excludes now. |
👍 Thanks a lot Charlie! |
Dummy flag is used in various places, so these replicas can't be perfect replicas. See jruby/jruby#2581.
The
UTF-32
encoding seems to be broken when converting to UTF-8. The input doesn't seem to matter as long as it is not an empty string.I have jruby-head from today:
The problem seems to be that as soon as there is a character in a string and it is converted to UTF-32 it then throws an error when converting to UTF_8
jruby-head:
2.2:
Discovered on lotus utils
Tobi
The text was updated successfully, but these errors were encountered: