-
Notifications
You must be signed in to change notification settings - Fork 157
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
isValidUtf8ByteArray
returns false positives
#540
Comments
text/src/Data/Text/Internal/Validate.hs Lines 132 to 137 in 73620de
text/src/Data/Text/Internal/Validate.hs Line 143 in 73620de
@andrewthad where did you take this code from? Are there any tests? |
Good catch. Could you possibly prepare a PR please? |
I am more inclined to fix this by using |
@sol The implementation of
I've investigated a little to figure out where I botched the adaptation though, and the comparison should be There are not any tests for this function that I'm aware of. |
We need to fix this before the next release, which is soon. Any volunteers? |
Repro:
(GHC 9.8.1 / Linux x64)
The text was updated successfully, but these errors were encountered: