We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Detected on Debian, Ubuntu, locale en_US.UTF-8. More precisely, it fails on characters in range \1024 - \1151, because T.decodeUtf8 thinks it is correct UTF-8 sequence. Problem is here https://github.com/snapframework/snap-core/blob/0.9-stable/src/Snap/Util/FileServe.hs#L355 Example:
en_US.UTF-8
T.decodeUtf8
cpp -E FileServe.hs > tmp.hs ghci tmp.hs ghci> T.decodeUtf8 $ S.pack "йфыяхъ" "9DKOEJ"
It must be exeption, but it isn't like in the case of Latin symbols:
ghci> T.decodeUtf8 $ S.pack "üéî" "*** Exception: Cannot decode byte '\xfc' ...
So we need just do T.pack on such strings.
T.pack
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Detected on Debian, Ubuntu, locale
en_US.UTF-8
. More precisely, it fails on characters in range \1024 - \1151, becauseT.decodeUtf8
thinks it is correct UTF-8 sequence. Problem is herehttps://github.com/snapframework/snap-core/blob/0.9-stable/src/Snap/Util/FileServe.hs#L355
Example:
It must be exeption, but it isn't like in the case of Latin symbols:
So we need just do
T.pack
on such strings.The text was updated successfully, but these errors were encountered: