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

codesite-noreply at google.com codesite-noreply at google.com
Tue Jan 29 20:09:10 CET 2013


Status: Accepted
Owner: allber... at gmail.com
Labels: Component-Contrib Type-Defect Usability

New issue 529 by allber... at 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.)



More information about the xmonad mailing list