Skip to content

UTF-8 encoding/decoding is broken #4927

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

Closed
ttuegel opened this issue Dec 3, 2017 · 3 comments
Closed

UTF-8 encoding/decoding is broken #4927

ttuegel opened this issue Dec 3, 2017 · 3 comments

Comments

@ttuegel
Copy link
Member

ttuegel commented Dec 3, 2017

The UTF-8 encoding/decoding functions in Distribution.Utils.String are broken:

ghci> (decodeStringUtf8 . encodeStringUtf8) "\65534"
"\65533"

I believe this means that encodeStringUtf8 is producing invalid UTF-8.

CC: @hvr
See also: #4902

@hvr
Copy link
Member

hvr commented Dec 3, 2017

@ttuegel I know... :-) see #4644 (comment)

@23Skidoo
Copy link
Member

23Skidoo commented Dec 3, 2017

@hvr Is this a duplicate? Feel free to close then.

@hvr
Copy link
Member

hvr commented Dec 3, 2017

@23Skidoo yeah; it's imho the same issue

@hvr hvr closed this as completed Dec 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants