https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ertu&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:23:21ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:Locale&diff=64809Talk:Locale2009-03-11T10:16:21Z<p>Ertu: /* Setting language */ new section</p>
<hr />
<div>[[User:Jf|jf]]: Is setting the $LC_ALL var really necessary??? It would seem (at least on my system) that it's not. All i have to do is run locale-gen, and set LOCALE in /etc/rc.conf, and that's it. What do u guys think?<br />
<br />
Just ignore this article. The part at the top is ok, but the .bashrc stuff is a bit misleading. [[User:Byte|byte]] 21:46, 13 October 2006 (EDT)<br />
<br />
This should be more to the point now. [[User:Byte|byte]] 19:09, 13 October 2006 (PDT)<br />
<br />
[[User:Jf|jf]]: ah, ok, thanks, byte....<br />
<br />
== "invalid charset name" ==<br />
<br />
hello ppl, I was having this error message while trying to access man pages and running less, it turns out that the LESSCHARSET environment variable does not recongnize utf if it is written like 'utf8' it will only work if you write it like 'UTF-8' hope it helps!<br />
<br />
== .bashrc ==<br />
<br />
.bashrc is only used by interactive bash sessions, right? So that if you login with KDM in KDE (or GDM gnome), the whole KDE session will inherit the locale set by init->KDM and will not use the one set in .bashrc! <br />
<br />
I guess a "source ~/.bashrc" in ~/.xprofile would solve this.<br />
<br />
--[[User:Luetti|Luetti]] 17:56, 8 July 2008 (EDT): I don't think so. I tried almost the whole day to set only LC_PAPER="de_DE.utf8". Trying this in almost every file possible (/etc/profile, .xprofile, .bashrc, /etc/rc.local) seemed to work, as I used "locale" in terminal to verify it. But this only worked for applications I started from terminal, but not for applications started from the gnome-menu. So I came to the conclusion it has something to do with gdm. After having a closer look to /etc/gdm/xsession the problem was clear. GDM probably always sets $GDM_LANG on login. When $GDM_LANG is set, xsession will unset all other LC-variables. Just commented out this part and now everything works as desired. <br />
If this is a common and/or important problem, I will add this to the article. What do you think?<br />
<br />
== Setting language ==<br />
<br />
'export LANG=en_EN.utf8'<br />
<br />
This locale does not exist in locale.gen.</div>Ertu