#3797: ByteString.Char8 damages Unicode
--------------------------------+-------------------------------------------
Reporter: Voker57 | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: libraries (other) | Version:
Resolution: invalid | Keywords: bytestring
Difficulty: | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: Other |
--------------------------------+-------------------------------------------
Changes (by dons):
* status: new => closed
* difficulty: =>
* resolution: => invalid
Comment:
This is the expected behaviour, and documented. Bytestrings when packing
will truncate the input to 8 bits. If you require a specific encoding,
pre-process the string first with e.g. utf8-string or else use the unicode
bytestring package: Data.Text.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3797#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs