Ticket #3797 (closed bug: invalid)
ByteString.Char8 damages Unicode
Description
import Data.Bytestring.Char8 unpack (pack "тест") == "тест" -- False, should be True Data.ByteString.Char8.length $ pack "тест" -- 4, should be 8 (UTF-8). Library truncates more-than-8bit chars
I'm not sure if this library should assume UTF-8 for {en,de}coding, but imho something has to be done about it.
Change History
Note: See
TracTickets for help on using
tickets.
