Skip to content
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

Unicode is not prettyprinted correctly #443

Open
DanBurton opened this issue Oct 15, 2019 · 1 comment
Open

Unicode is not prettyprinted correctly #443

DanBurton opened this issue Oct 15, 2019 · 1 comment

Comments

@DanBurton
Copy link
Contributor

See, for example: 94a3bcd

UnicodeIdents.hs

= ()

UnicodeIdents.hs.prettyprinter.golden

+ = ()

This golden file is known to be incorrect.

@obfusk
Copy link

obfusk commented Oct 15, 2019

Looks like the unicode character gets truncated to 8 bits: ord '猫' is 0x732b, ord '+' is 0x2b.

Easy to do:

import qualified Data.ByteString.Char8 as BS
BS.pack "" -- => "+"

But I'm not sure why or where it's happening here.

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

No branches or pull requests

2 participants