diff options
-rw-r--r-- | src/Localize.hsc | 2 |
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 |