You are not logged in.
I'm having the same problem as in https://bbs.archlinux.org/viewtopic.php?id=50963, but the solutions aren't working for me.
If I run urxvt from gmrun or with a fluxbox shortcut, the unicode characters don't show. I get a weird characters like ââââ. If I then run urxvt from that terminal, everything shows up properly in the new term.
My shell is zsh and I'm running urxvt-unicode in Fluxbox.
> locale
LANG=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
> locale -a
C
en_US.utf8
POSIX
I've symlinked /etc/zprofile to /etc/profile as suggested in the other thread.
Any other ideas?
Thanks
-Ag
Offline
Malformat "LANG=en_US:en"
Do NOT link /etc/zprofile to /etc/profile - that's insane and about the most BS advise I've read… today.
Instead fix your system locale setup: https://wiki.archlinux.org/index.php/Lo … the_locale
Offline
Good catch. I fixed my locale setup, but the results are the same. I tried multiple terminals.
gnome-terminal and mate-terminal are fine, even when called using shortcuts.
lxterminal and urxvt are only fine if called from a running term.
All four are using the same font and locales are the same. Just using mate-terminal for now.
Offline
Compare
tr '\0' '\n' < /proc/$PPID/environ
in each terminal (PPID should be the terminal emulator) and pay attention to the locale values.
You can likewise look at
tr '\0' '\n' < /proc/`pidof fluxbox`/environ
Offline
Hmmmm. No locale values.
urxvt:
KDE_FULL_SESSION=true
_=/bin/urxvt
DISPLAY=:0.0
XDG_VTNR=7
SSH_AUTH_SOCK=/tmp/ssh-MM32gNi9eWnz/agent.469
XDG_SESSION_ID=1er
QT_QPA_PLATFORMTHEME=qt5ct
SSH_AGENT_PID=554
SHELL=/bin/zsh
SHLVL=1
XDG_SEAT=seat0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
PATH=/bin:/usr/bin:/usr/local/bin
KDE_SESSION_VERSION=5
mate-terminal
KDE_FULL_SESSION=true
DISPLAY=:0.0
XDG_VTNR=7
XDG_SESSION_ID=1
QT_QPA_PLATFORMTHEME=qt5ct
SHELL=/bin/zsh
XDG_SEAT=seat0
SHLVL=0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
PATH=/bin:/usr/bin:/usr/local/bin
KDE_SESSION_VERSION=5
SSH_AUTH_SOCK=/tmp/ssh-MM32gNi9eWnz/agent.469
SSH_AGENT_PID=554
_=/usr/bin/mate-terminal
fluxbox pid:
KDE_FULL_SESSION=true
DISPLAY=:0.0
XDG_VTNR=7
XDG_SESSION_ID=1
QT_QPA_PLATFORMTHEME=qt5ct
SHELL=/bin/zsh
XDG_SEAT=seat0
SHLVL=0
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
PATH=/bin:/usr/bin:/usr/local/bin
KDE_SESSION_VERSION=5
SSH_AUTH_SOCK=/tmp/ssh-MM32gNi9eWnz/agent.469
SSH_AGENT_PID=554
For both terminals, after removing the zprofile symlink:
> locale
LANG=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
Offline
How do you start the session and what's the content of /etc/locale.conf ?
Sidenote: why has fluxbox a "KDE_FULL_SESSION=true" entry??
Offline
I start the session from slim with the fluxbox.desktop file (/usr/bin/startfluxbox).
KDE_FULL_SESSION is set to true in my fluxbox startup for some app compatibility. Removing it doesn't make a difference. Fluxbox is ultimately started after that with
exec ssh-agent fluxbox
Offline
what's the content of /etc/locale.conf
In case you just fixed that - did you restart the slim.service afterwards?
I didn't assume the variable would have impact, just wondering.
Offline
I did. I even rebooted. The last responses I gave you were from a clean install in a VM, trying to elimate something weird I'm doing with my profile. I originally started a fresh version of fluxbox with no personal configs with the same result. Then I went ahead and added my profile and fluxbox startup file. No difference.
Possibly I'm doing something weird during install. My settings work fine in Debian Testing.
Edit: locale.conf
LANG=en_US.UTF-8
Last edited by aglarond (2018-12-04 22:04:06)
Offline
/etc/profile is supposed to source /etc/profile.d/locale.sh and that is supposed to source /etc/locale.conf resp. preferably $HOME/.config/locale.conf, so the LANG variable should™ show up in the sessions environment unless either
1. the above chain is broken at some point
2. something™ actively unsets the LANG variable (eg. some specific profile/rc for the shell that ultimately executes the startup script)
Since it's zsh - you do not happen to have installed OMZ, do you?
Offline
I have installed omz.
Just switched my profile to bash to eliminate that and the symptoms remain. Was hoping that would be it.
Wait. Edit.
Switched to bash and restarted X. Now it works. Something with zsh or omz.
Thanks for the help narrowing it down.
Last edited by aglarond (2018-12-04 22:20:58)
Offline
Something with zsh or omz.
Quelle surprise.
Offline