[arch-general] Character encoding on new install
Hello! I seem to have an issue with my character encoding in a new arch install. Here [0] [1] are a couple screenshots. I have locales set correctly in /etc/locale.gen: en_US.UTF-8 UTF-8 en_US ISO-8859-1 and according to 'locale', all my variables seem to be in order: LANG=en_US.UTF-8 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= It happens in terminals (sakura, urxvt, xterm) and also in firefox for some characters. I'm at a loss for where to go on this, any ideas? Thanks! Tim [0] http://dl.dropbox.com/u/3232776/mc-encoding.png [1] http://dl.dropbox.com/u/3232776/encoding.png
Should those [] be latin alphabets? If not, then you are just simply missing fonts for them.
On Sat, Feb 25, 2012 at 07:10:51AM -0800, Tim Stella wrote:
I have locales set correctly in /etc/locale.gen:
en_US.UTF-8 UTF-8 en_US ISO-8859-1
Have these locales been generated? After editing locale.gen, you have to run `locale-gen` as root.
and according to 'locale', all my variables seem to be in order:
LANG=en_US.UTF-8 [...]
Where are these locale variables set? If they are in your `.bashrc`, it could be that your terminals do not have the proper variables -- for example, awesome LANG="" └── xterm LANG="" - expects ISO-8859-1 └── bash LANG="en_US.UTF-8" - emits UTF-8 └── mc LANG="en_US.UTF-8" - emits UTF-8 -- causing the terminal to expect a different charset than the one `mc` uses. You can check using ` tr "\0" "\n" < /proc/$PPID/environ ` in a new terminal (where $PPID should expand to the PID of xterm/sakura/whatever). -- Mantas M. <grawity@gmail.com>
Side note: After yet another locale-debugging session on #archlinux, I wrote this short script: https://github.com/grawity/code/blob/master/os/locale-check Maybe someone will find it useful. -- Mantas M. <grawity@gmail.com>
On 02/25/12 at 06:57pm, Mantas M. wrote:
On Sat, Feb 25, 2012 at 07:10:51AM -0800, Tim Stella wrote:
I have locales set correctly in /etc/locale.gen:
en_US.UTF-8 UTF-8 en_US ISO-8859-1
Have these locales been generated? After editing locale.gen, you have to run `locale-gen` as root.
and according to 'locale', all my variables seem to be in order:
LANG=en_US.UTF-8 [...]
Where are these locale variables set?
If they are in your `.bashrc`, it could be that your terminals do not have the proper variables -- for example,
awesome LANG="" └── xterm LANG="" - expects ISO-8859-1 └── bash LANG="en_US.UTF-8" - emits UTF-8 └── mc LANG="en_US.UTF-8" - emits UTF-8
-- causing the terminal to expect a different charset than the one `mc` uses.
You can check using ` tr "\0" "\n" < /proc/$PPID/environ ` in a new terminal (where $PPID should expand to the PID of xterm/sakura/whatever).
-- Mantas M. <grawity@gmail.com>
Thank you! After checking the environs of the different processes, it seems all of them had LANG= -- so a quick reboot fixed it. I guess after I generated the locales, I needed to relog at least (but did a restart just to be sure.) All working now! Thank you. Tim
participants (3)
-
Jesse Juhani Jaara
-
Mantas M.
-
Tim Stella