Data.Text.Encoding.Base16.decodeBase16Lenient fails in base16-1.0 with Invalid UTF-8 stream:
"\NUL\DC4ß\DLEGENS" `shouldBe` Data.Text.Encoding.Base16.decodeBase16Lenient "0014df1047454e53"
fails with
uncaught exception: UnicodeException
Cannot decode byte '\xdf': Data.Text.Encoding: Invalid UTF-8 stream
This is a regression as with base16-0.3.2.1 this didn't fail and produced the string "\NUL\DC4ß\DLEGENS"
Also the haddock clearly states that decodeBase16Lenient never fails: using a strategy that never fails, catching unicode exceptions raised in the process.
Data.Text.Encoding.Base16.decodeBase16Lenient fails in base16-1.0 with
Invalid UTF-8 stream:fails with
This is a regression as with
base16-0.3.2.1this didn't fail and produced the string"\NUL\DC4ß\DLEGENS"Also the haddock clearly states that
decodeBase16Lenientnever fails:using a strategy that never fails, catching unicode exceptions raised in the process.