
29 Apr
2010
29 Apr
'10
7:15 a.m.
В сообщении от 29 апреля 2010 09:30:22 Norbert Zeh написал:
(1) xmonad seems to double-encode the utf string. Namely, if I change my ppOutput to hPutStrLn handle . UTF8.decodeString, things come out *kind of* fine.
Yes, it does. Actual culprits are functions from XMonad.Util.Font decodeInput and encodeInput they are encoding string as UTF8 and them GHC encode it second time. I think that right fix is to use preprocessor do define them differently for GHC<=6.10 and GHC>=6.12. A bit ugly but should work for everyone.