Commit 36a208f4 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Use builtin ISO 8859-1 decoder in mkTextEncoding

We already do this for UTF8/16/32, so it seems obvious do the same
for the closely related popular ISO 8859-1 encoding, and avoid iconv
issues on some platforms (such as AIX which which bundles a broken
`libiconv` by default)

This fixes #11096
parent d40f5b78
......@@ -245,6 +245,8 @@ mkTextEncoding' cfm enc =
"UTF32" -> return $ UTF32.mkUTF32 cfm
"UTF32LE" -> return $ UTF32.mkUTF32le cfm
"UTF32BE" -> return $ UTF32.mkUTF32be cfm
-- ISO8859-1 we can handle ourselves as well
"ISO88591" -> return $ Latin1.mkLatin1 cfm
#if defined(mingw32_HOST_OS)
'C':'P':n | [(cp,"")] <- reads n -> return $ CodePage.mkCodePageEncoding cfm cp
_ -> unknownEncodingErr (enc ++ codingFailureModeSuffix cfm)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment