[prev in list] [next in list] [prev in thread] [next in thread]
List: xmonad
Subject: Re: [xmonad] UTF8 output from xmonad mangled
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2010-04-28 11:18:50
Message-ID: m2g8425cc0e1004280418gfac9a1dbk855d52fa2d70d2b9 () mail ! gmail ! com
[Download RAW message or body]
On Wed, Apr 28, 2010 at 1:11 PM, Norbert Zeh <nzeh@cs.dal.ca> wrote:
> Hi folks,
>
> I'm using xmobar as my status bar and have problems to get UTF8
> characters to display correctly. I did the following tests:
>
> 1. Start xmobar, reading input from stdin. Type in some unicode
> characters. Xmobar displays them fine.
>
> 2. Add some unicode characters to my loghook in xmonad. Things come
> out garbled.
>
> 3. Instead of piping to xmobar, make xmonad write to a file. The file
> contents are also garbled. To be more precise, they are exactly what
> xmobar shows me in the second test.
>
> So this seems like the problem is on xmonad's end, not xmobar's. I'm
> running the latest darcs version of xmonad. Any ideas what could be
> causing this?
>
What version of GHC do you use? Starting from version 6.12 GHC properly
encodes strings. Earlier versions just truncated characters to 0-255 range.
If you use GHC 6.10 or earlier you should use encodeString from utf8-string
package to encode string in utf8 before writing to pipe.
_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic