[arch-general] Character encoding on new install
Tim Stella
denstark at gmail.com
Sat Feb 25 12:09:29 EST 2012
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 at 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
More information about the arch-general
mailing list