Issue 529 in xmonad: XMonad.Prompt.Shell double-encodes with recent ghc

Status: Accepted Owner: allber...@gmail.com Labels: Component-Contrib Type-Defect Usability New issue 529 by allber...@gmail.com: XMonad.Prompt.Shell double-encodes with recent ghc http://code.google.com/p/xmonad/issues/detail?id=529 [29 13:43] <ryanakca> Yes. Running "echo 'àé' > /tmp/foo && hexdump -C /tmp/foo" gives "c3 a0 c3 a9 0a" in urxvt under xmonad here, and "echo 'àé'
/tmp/foo" via the shell prompt provided by XMonad.Prompt.Shell, followed by "hexdump -C /tmp/foo" in urxvt, displays "c3 83 c2 a0 c3 83 c2 a9 0a".
X.P.Shell is explicitly calling encodeUtf8, but the base ghc libraries with 7.6.1 already do that if $LANG / $LC_ALL is set unless you call the lower level versions of these functions. (Which didn't exist in older versions of base, so we can't simply use those instead.)
participants (1)
-
codesite-noreply@google.com