Skip to content

Improve Error in case of StringIO write with invalid characters#11756

Merged
josevalim merged 1 commit intoelixir-lang:mainfrom
maennchen:string_io_transcode_error
Apr 25, 2022
Merged

Improve Error in case of StringIO write with invalid characters#11756
josevalim merged 1 commit intoelixir-lang:mainfrom
maennchen:string_io_transcode_error

Conversation

@maennchen
Copy link
Member

@maennchen maennchen commented Apr 12, 2022

Mailing list discussion: https://groups.google.com/g/elixir-lang-core/c/RR7nbeHsluQ

This uses the existing no_translation erlang error to handle transcoding issues. This will not solve the same problem when using a normal file. (Upcoming PR in OTP itself)

EDIT: Removed comment about tests since they have been fixed.

@maennchen maennchen marked this pull request as ready for review April 25, 2022 05:20
@maennchen maennchen marked this pull request as draft April 25, 2022 07:05
@josevalim josevalim marked this pull request as ready for review April 25, 2022 08:57
@josevalim josevalim merged commit 225241f into elixir-lang:main Apr 25, 2022
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@maennchen maennchen deleted the string_io_transcode_error branch April 25, 2022 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants