alexkay/xmonad-log-applet — pull request #6 by nguyentito (2012-03-31 21:17:07+00:00)
Title: Updating the example xmonad.hs file to use dbus-core

The updated file now works with the latest version of the dbus-core Haskell library (http://hackage.haskell.org/package/dbus-core), which removes the dependency on the unmaintained DBus package (http://hackage.haskell.org/package/DBus).

I also ran into the issue someone mentioned on the bug tracker about Unicode characters. I think what happens is that the DBus serialization functions expect to receive a "normal" Haskell string (i.e. a list of unicode characters) whereas the string given to the pretty printer by XMonad is actually a list of 8-bit words which correspond to the UTF-8 encoding of the actual text. Using the decodeString function from the utf8-string library (upon which XMonad already depends) fixes the problem (at least, it does for me). The person who posted the bug report must have been mislead by the fact that the UTF-8 and ISO-8859-1 encodings are the same for a string with only European characters.

So this patch solves both issue #4 and issue #5 :-)