From c6669e26e1ee9ef6ff9b0e5d2e85df15ad731140 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Sun, 9 Aug 2020 13:09:38 +0530 Subject: Update changelog and add comment --- src/Xmobar/X11/MinXft.hsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Xmobar/X11') diff --git a/src/Xmobar/X11/MinXft.hsc b/src/Xmobar/X11/MinXft.hsc index 22edf8f..d6861e6 100644 --- a/src/Xmobar/X11/MinXft.hsc +++ b/src/Xmobar/X11/MinXft.hsc @@ -161,12 +161,12 @@ withAXftDraw d p v c act = do foreign import ccall "XftDrawStringUtf8" cXftDrawStringUtf8 :: AXftDraw -> AXftColor -> AXftFont -> CInt -> CInt -> Ptr (#type FcChar8) -> CInt -> IO () +-- Fixes https://github.com/jaor/xmobar/issues/476 utf8EncodeString :: Num b => String -> [b] utf8EncodeString str = if UTF8.isUTF8Encoded str then map (fi . ord) str else map fi (UTF8.encode str) - drawXftString :: (Integral a1, Integral a) => AXftDraw -> AXftColor -> AXftFont -> a -> a1 -> String -> IO () drawXftString d c f x y string = -- cgit v1.2.3