summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-08-29 17:55:50 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-08-29 17:55:50 +0200
commit1d20b99ec742ce08a8083a01ccb15adb763815e1 (patch)
tree738f944236905aa7231dc4c20368efd0c324bd72 /src
parente58c8d1e478c19ae9c3a9fe165d002876c1f030c (diff)
downloadxmobar-1d20b99ec742ce08a8083a01ccb15adb763815e1.tar.gz
xmobar-1d20b99ec742ce08a8083a01ccb15adb763815e1.tar.bz2
Fix for decoding problem in datetime plugin
Should address issue #106
Diffstat (limited to 'src')
-rw-r--r--src/Localize.hsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Localize.hsc b/src/Localize.hsc
index b302cd4..28f4495 100644
--- a/src/Localize.hsc
+++ b/src/Localize.hsc
@@ -46,7 +46,7 @@ getLangInfo item = do
itemStr <- nl_langinfo item
#ifdef UTF8
str <- peekCString itemStr
- return $ decodeString str
+ return $ if (isUTF8Encoded str) then decodeString str else str
#else
peekCString itemStr
#endif