From 30719202b9daa80fe1ab37293a4615b93cb042d9 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Mon, 30 Aug 2021 17:45:47 +0100 Subject: [PATCH] Fix xmessage in non-UTF-8 locales `executeFile` encodes the arguments with the current locale's encoding, and GHC as invoked during recompilation quite likely also outputs any errors in the locale encoding, which we then read using `readFile` again decoding in the locale encoding, so it really makes no sense to force a specific encoding here. What was I thinking? :-) Related: https://github.com/xmonad/xmonad/issues/322#issuecomment-900503386 Fixes: https://github.com/xmonad/xmonad/issues/324 Fixes: aa35ea185683 ("Make xmessage handle UTF-8 and export it") --- src/XMonad/Core.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/XMonad/Core.hs b/src/XMonad/Core.hs index b5ba932..d7462f9 100644 --- a/src/XMonad/Core.hs +++ b/src/XMonad/Core.hs @@ -459,7 +459,6 @@ xfork x = io . forkProcess . finally nullStdin $ do -- | Use @xmessage@ to show information to the user. xmessage :: MonadIO m => String -> m () xmessage msg = void . xfork $ do - setEnv "LC_ALL" "C.UTF-8" executeFile "xmessage" True [ "-default", "okay" , "-xrm", "*international:true"