Unicode, strings, and Show
Manuel Gómez
targen at gmail.com
Wed Mar 30 03:01:14 UTC 2016
On Tue, Mar 29, 2016 at 9:56 PM, Manuel M T Chakravarty
<chak at justtesting.org> wrote:
> Why are we doing this?
>
> GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help
> Prelude> "文字"
> "\25991\23383"
> Prelude>
>
> After all, we don’t print ’a’ as ’\97’.
>
> Manuel
Indeed:
• 2016: https://mail.haskell.org/pipermail/haskell-cafe/2016-February/122874.html
• 2012: http://stackoverflow.com/questions/14039726/how-to-make-haskell-or-ghci-able-to-show-chinese-characters-and-run-chinese-char
• 2012 again: https://mail.haskell.org/pipermail/haskell-cafe/2012-July/102569.html
• 2011: http://stackoverflow.com/questions/5535512/how-to-hack-ghci-or-hugs-so-that-it-prints-unicode-chars-unescaped
• 2010: https://mail.haskell.org/pipermail/haskell-cafe/2010-August/082823.html
This is a constant source of pain and should be relatively easy to fix.
Manuel
More information about the ghc-devs
mailing list