Emerging xmobar with the xft useflag pulls in this package, which isn't compiled correctly, due to not properly recognized dependencies. (See build.log lines 13-17 and 64-67) Reproducible: Always Actual Results: Since xmobar pulls it in and it's partly needed for unicode support with it, xmobar isn't able to print any non-ASCII characters.
Created attachment 257243 [details] build.log
Created attachment 257245 [details] emerge-info.log
Please run haskell-updater and then try building xmobar again.
(In reply to comment #3) > Please run haskell-updater and then try building xmobar again. > I did, however there there were neither packages installed with a different version of GHC, nor libraries with broken dependencies. I still tried to build xmobar and xft again, but it produced the same results.
Weird... because the problem seems to be one of broken packages. Can you please provide the output from the following: * ghc-pkg check * ghc-pkg list X11 * ghc-pkg list base * ghc-pkg list utf8-string Alternatively, try doing "ghc-pkg recache" and then building x11-xft again.
It has nothing to do with deps. As far as I see emerge log if fine. It's the registration phase, which bothers you. Can I look at your xmonad/xmobar configs? I think you messed UTF8String an String somewhere in PP pipe.
ghc-pkg check returns nothing. And the respective ghc-pkg lists: /usr/lib/ghc-6.12.3/package.conf.d: X11-1.4.6.1 /usr/lib/ghc-6.12.3/package.conf.d: base-3.0.3.2 base-4.2.0.2 /usr/lib/ghc-6.12.3/package.conf.d: utf8-string-0.3.6 xmobarrc: Config { font = "-*-Fixed-Bold-R-Normal-*-12-*-*-*-*-*-*-*" , bgColor = "black" , fgColor = "white" , position = TopW L 90 , lowerOnStart = True , commands = [ Run Date "%a %_d %b %Y %H:%M:%S" "date" 10 , Run Cpu ["-L","0","-H","80","--normal","green","--high","red"] 10 , Run StdinReader ] , sepChar = "%" , alignSep = "}{" , template = "%StdinReader% }{%cpu% | %date%" } xmonad.hs: import XMonad import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import XMonad.Util.Run(spawnPipe) import XMonad.Util.EZConfig(additionalKeys) import System.IO myManageHook = composeAll [ className =? "Gimp" --> doFloat , className =? "Mplayer" --> doFloat , className =? "SMplayer" --> doFloat , className =? "Kcalc" --> doFloat , className =? "Vlc" --> doFloat ] main = do xmproc <- spawnPipe "xmobar /home/kycse/.xmobarrc" xmonad $ defaultConfig { manageHook = manageDocks <+> myManageHook <+> manageHook defaultConfig , layoutHook = avoidStruts $ layoutHook defaultConfig , workspaces = ["term","web","misc"] ++ map show [4..9] , terminal = "urxvtc" -- , logHook = dynamicLogWithPP $ xmobarPP -- { ppOutput = System.IO.hPutStrLn h -- , ppTitle = xmobarColor "green" "" . shorten 50 -- } , logHook = myLogHook xmproc , modMask = mod4Mask } `additionalKeys` [ ((mod4Mask .|. controlMask, xK_l), spawn "xscreensaver-command -lock") , ((controlMask, xK_Print), spawn "scrot -s") , ((0, xK_Print), spawn "scrot") , ((mod4Mask, xK_p), spawn "exe=`dmenu_path | dmenu -nb black -nf white -sb blue -sf white` && eval \"exec $exe\"") , ((mod4Mask .|. shiftMask, xK_p), spawn "killall xmobar") ] myLogHook h = dynamicLogWithPP $ xmobarPP { ppTitle = xmobarColor "green" "" . shorten 50 , ppOutput = hPutStrLn h } As far as I am aware, it should work. Someone I know uses the same config with Ubuntu and it works fine for her. Besides, if my config would fix xmobar it would be nice, but I still wonder why during compiling it still says that it couldn't be found.
> xmobarrc: > > Config { font = "-*-Fixed-Bold-R-Normal-*-12-*-*-*-*-*-*-*" > , bgColor = "black" > , fgColor = "white" > , position = TopW L 90 > , lowerOnStart = True > , commands = [ Run Date "%a %_d %b %Y %H:%M:%S" "date" 10 > , Run Cpu > ["-L","0","-H","80","--normal","green","--high","red"] 10 > , Run StdinReader > ] > , sepChar = "%" > , alignSep = "}{" > , template = "%StdinReader% }{%cpu% | %date%" > } Looks sane. Let's check your xmobar alone works as expected: I killed all xmobar instances in my environment and ran the following command: { while :; do echo -n "Сегодня: " ; date; sleep 1; done } | xmobar -b czyba_xmobarrc As a result I got xmobar as bottom tray line (might be hidden under other windows). I have no problems with cyrillic glyphs. My xmobar is 0.11.1 USE="unicode xft". Does such limited case work for you?
Yes, this works fine. I added some of the chars that usually exist within my language and are non-ASCII, and those worked fine as well. If I create a directory with the same name, change the directory to that and start my usual xmobar, it doesn't display it though. And since I forgot to mention it (and it might be relevant): xmobar version: 0.11.1 xmonad version: 0.8.1
(In reply to comment #9) > Yes, this works fine. I added some of the chars that usually exist within my > language and are non-ASCII, and those worked fine as well. > > If I create a directory with the same name, change the directory to that and > start my usual xmobar, it doesn't display it though. > > And since I forgot to mention it (and it might be relevant): > xmobar version: 0.11.1 > xmonad version: 0.8.1 You mean, the window title set by your terminal/'file browser' is not displayed correctly in the xmobar, right? Does firefox show proper title for the dir? mkdir /tmp/привет firefox file:///tmp/привет
> (In reply to comment #9) > > Yes, this works fine. I added some of the chars that usually exist within my > > language and are non-ASCII, and those worked fine as well. > > > > If I create a directory with the same name, change the directory to that and > > start my usual xmobar, it doesn't display it though. > > > > And since I forgot to mention it (and it might be relevant): > > xmobar version: 0.11.1 > > xmonad version: 0.8.1 > > You mean, the window title set by your terminal/'file browser' is not displayed > correctly in the xmobar, right? > > Does firefox show proper title for the dir? > mkdir /tmp/привет > firefox file:///tmp/привет > This works, however the directory shown in xmobar is now: "/tmp/?@825B". It works with any browser, file browser and terminal. However, the problem doesn't only arise when changing directories. Playing music files with non-ASCII characters or opening a website can't be displayed on xmobar. Pretty much anything which is displayed on xmobar through the StdinReader shows that behavior when it contains such characters.
Oh, your problem is merely one of xmobar not working properly rather than a build problem? :o What gets shown when you try to run xmobar? Does the title text contain any { or } in them? Because if so that could cause problems (which was one reason I stopped displaying the current title in xmobar; the other was lack of space :s).
(In reply to comment #12) > Oh, your problem is merely one of xmobar not working properly rather than a > build problem? :o > > What gets shown when you try to run xmobar? > > Does the title text contain any { or } in them? Because if so that could cause > problems (which was one reason I stopped displaying the current title in > xmobar; the other was lack of space :s). > Err, I think this is a misunderstanding, xmobar doesn't work correctly, true. And since I wondered what might cause it, I stumbled upon that build problem. The xmobar problem is just my original problem, but the build problem is still the problem I posted here. (Since my xmobar problem is most likely caused by misconfiguration and not a bug, while the build problem is most likely a bug, at least I think so.) When I run xmobar without config, it shows a left algined: "Updating..." then a right aligned: "Linux * Sun" (At least something akin to *) { and } get displayed when inserting them, but the } is in the center of the bar. Furthermore, I noticed: mkdir {} cd {} results in: Could not parse string: <fc=yellow>[1]</fc> : Tall : <fc=green>Christopher@Could not parse string: </fc> } At any rate, the problem is still the build problem, but helping me fix my xmobar will still make me grateful. :D