Difference between revisions of "Talk:Locale"

From ArchWiki
Jump to: navigation, search
("invalid charset name")
(locale.conf quotes)
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== <s> "invalid charset name" </s> ==
 
 
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!
 
: Fixed. Close. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 05:12, 14 October 2012 (UTC)
 
 
 
== .bashrc ==
 
== .bashrc ==
  
Line 13: Line 8:
 
If this is a common and/or important problem, I will add this to the article. What do you think?
 
If this is a common and/or important problem, I will add this to the article. What do you think?
  
== <s> setting LC_ALL a bad idea? </s>==
+
== LC_MESSAGES ==
  
At the end, this wiki suggests setting LC_ALL in /etc/environment
+
Setting LC_MESSAGES to "C" or "POSIX" (as opposed to "en_US.UTF-8" for example), can save tens of syscalls in a simple program without any loss (since all you need is plain English anyway). It's 29 less syscalls (on my system) for a simple "ls /no/such/dir".  Add this info inside?  --[[User:Philomath|Philomath]] ([[User talk:Philomath|talk]]) 07:55, 2 July 2012 (UTC)
  
https://wiki.archlinux.org/index.php/Locale#gnome-terminal_doesn.27t_support_UTF-8_characters_for_me
 
  
but the Gentoo localization page says about LC_ALL that you should "never set it in a startup file".  
+
== locale.sh ==
 +
If setting locale.conf doesn't work (symptom: everything is set to POSIX no matter whats in locale.conf), reinstall filesystem.
 +
(locale.sh somehow gets lost, see comment here https://plus.google.com/114015603831160344127/posts/2zKCcnTWDpa happens after the switch to systemd)
  
http://www.gentoo.org/doc/en/guide-localization.xml
+
JKAbrams 01 December 2012
  
Who is correct?
+
== locale.conf quotes ==
  
Is it sufficient just to set LANG in /etc/environment, and not set LC_ALL?
+
Are the quotes mandatory in locale.conf?
 +
Im wondering because in the [[Beginners'_Guide#Locale|Beginners'_Guide]] there is no quote.
 +
--[[User:Bikepunk|Bikepunk]] ([[User talk:Bikepunk|talk]]) 22:10, 26 December 2012 (UTC)
  
 
+
:Tested with the LANG attribute, and there seems to be no ill effect either way. [[User:T1nk3r3r|T1nk3r3r]] ([[User talk:T1nk3r3r|talk]]) 21:54, 3 January 2013 (UTC)
-Yeap, lang is sufficient, it worked even on gentoo. I removed it --[[User:Maevius|Maevius]] 08:30, 19 January 2012 (EST)
+
 
+
== LC_MESSAGES ==
+
 
+
Setting LC_MESSAGES to "C" or "POSIX" (as opposed to "en_US.UTF-8" for example), can save tens of syscalls in a simple program without any loss (since all you need is plain English anyway). It's 29 less syscalls (on my system) for a simple "ls /no/such/dir".   Add this info inside?  --[[User:Philomath|Philomath]] ([[User talk:Philomath|talk]]) 07:55, 2 July 2012 (UTC)
+

Revision as of 21:54, 3 January 2013

.bashrc

.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!

I guess a "source ~/.bashrc" in ~/.xprofile would solve this.

--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. If this is a common and/or important problem, I will add this to the article. What do you think?

LC_MESSAGES

Setting LC_MESSAGES to "C" or "POSIX" (as opposed to "en_US.UTF-8" for example), can save tens of syscalls in a simple program without any loss (since all you need is plain English anyway). It's 29 less syscalls (on my system) for a simple "ls /no/such/dir". Add this info inside? --Philomath (talk) 07:55, 2 July 2012 (UTC)


locale.sh

If setting locale.conf doesn't work (symptom: everything is set to POSIX no matter whats in locale.conf), reinstall filesystem. (locale.sh somehow gets lost, see comment here https://plus.google.com/114015603831160344127/posts/2zKCcnTWDpa happens after the switch to systemd)

JKAbrams 01 December 2012

locale.conf quotes

Are the quotes mandatory in locale.conf? Im wondering because in the Beginners'_Guide there is no quote. --Bikepunk (talk) 22:10, 26 December 2012 (UTC)

Tested with the LANG attribute, and there seems to be no ill effect either way. T1nk3r3r (talk) 21:54, 3 January 2013 (UTC)