Skip to content

Make get @Char fail on invalid encodings#236

Merged
konsumlamm merged 2 commits intohaskell:masterfrom
konsumlamm:wtf8
Apr 20, 2026
Merged

Make get @Char fail on invalid encodings#236
konsumlamm merged 2 commits intohaskell:masterfrom
konsumlamm:wtf8

Conversation

@konsumlamm
Copy link
Copy Markdown
Contributor

Closes #71.

Check that the input is encoded using WTF-8 (like UTF-8, but surrogates are allowed). Add a test case to check that there aren't multiple valid encodings for a Char.

@konsumlamm konsumlamm merged commit d199a64 into haskell:master Apr 20, 2026
15 checks passed
@konsumlamm konsumlamm deleted the wtf8 branch April 20, 2026 13:04
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.

UTF-8 validation when deserializing

1 participant