Discussion:
[xmonad] Issue 611 in xmonad: XMonad.Util.Run needs to not encode with recent ghc
c***@google.com
2015-08-14 07:07:31 UTC
Permalink
Status: New
Owner: ----
Labels: Type-Defect

New issue 611 by ***@gmail.com: XMonad.Util.Run needs to not encode
with recent ghc
https://code.google.com/p/xmonad/issues/detail?id=611

ghc 7.8 (I think; certainly 7.10) and later automatically encode strings
used as command line parameters. XMonad.Util.Run has encoding code intended
for older ghc versions which truncate instead of encoding; this leads to
double encoding.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
c***@google.com
2015-08-14 15:01:46 UTC
Permalink
Comment #1 on issue 611 by ***@gmail.com: XMonad.Util.Run needs to
not encode with recent ghc
https://code.google.com/p/xmonad/issues/detail?id=611

Minimal config to reproduce the issue discussed on IRC (using xmobar).

import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run

myLogHook h = dynamicLogWithPP $ xmobarPP
{ ppOutput = hPutStrLn h
}

main :: IO ()
main = do
xmobar <- spawnPipe "xmobar --font='xft:DejaVu Sans Mono,Symbola'
--commands='[Run StdinReader]' -t '%StdinReader%}{😄'"
xmonad $
defaultConfig
{ modMask = mod4Mask
, logHook = myLogHook xmobar
, layoutHook = avoidStruts $ layoutHook defaultConfig
}

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
c***@google.com
2015-08-14 17:46:43 UTC
Permalink
Comment #3 on issue 611 by ***@gmail.com: XMonad.Util.Run needs to
not encode with recent ghc
https://code.google.com/p/xmonad/issues/detail?id=611

That's intentional. I just used an emoji as an example of a character that
is encoded improperly. The issue arises from any multibyte character.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Loading...