Issue 611 in xmonad: XMonad.Util.Run needs to not encode with recent ghc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 611 in xmonad: XMonad.Util.Run needs to not encode with recent ghc

codesite-noreply@google.com
Status: New
Owner: ----
Labels: Type-Defect

New issue 611 by [hidden email]: 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
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: Issue 611 in xmonad: XMonad.Util.Run needs to not encode with recent ghc

codesite-noreply@google.com

Comment #1 on issue 611 by [hidden email]: 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
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Reply | Threaded
Open this post in threaded view
|

Re: Issue 611 in xmonad: XMonad.Util.Run needs to not encode with recent ghc

codesite-noreply@google.com
In reply to this post by codesite-noreply@google.com

Comment #3 on issue 611 by [hidden email]: 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
_______________________________________________
xmonad mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad