Difference between revisions of "Talk:Locale"

From ArchWiki
Jump to navigation Jump to search
m (pam_environment: strike outdated reply)
(System-wide vs. user setting: re)
Line 27: Line 27:
  
 
Sounds like a fair argument to me. Objections to adjust the article accordingly? -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 21:36, 21 August 2014 (UTC)
 
Sounds like a fair argument to me. Objections to adjust the article accordingly? -- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 21:36, 21 August 2014 (UTC)
 +
 +
:This is bigger than that, it's always been Arch's custom to instruct users to use a global locale. They may have a point at Funtoo, but this should be brought up in a ML or the forums first, and then at least [[Installation guide#Configure the system]] and [[Beginners' Guide#Locale]] should be changed accordingly. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 01:23, 23 August 2014 (UTC)
  
 
== LC_MESSAGES ==
 
== LC_MESSAGES ==

Revision as of 01:23, 23 August 2014

.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. —This unsigned comment is by Gdamjan (talk) 13:24, 23 June 2008‎. Please sign your posts with ~~~~!

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? -- Luetti 17:56, 8 July 2008 (EDT)
I think more information on this is missing in the article. I want to have LC_MESSAGES=C, LANG=de_DE.UTF-8 and LC_TIME=en_DK.UTF-8, but gnome seems to overwrite the settings. When I comment out the lines with GDM_LANG in /etc/gdm/Xsession, I can no longer log in. I would also appreciate it if someone who knows the role of the settings in "Region&Language" in gnome-control-center could add this to the article. Where are they saved and how do I disable them in favor of detailed settings (globally in /etc/locale.conf or locally in ~/.profile)? Viktordick (talk) 21:43, 13 April 2013 (UTC)

pam_environment

-- Moved from ArchWiki:Reports -- Alad (talk) 21:23, 21 August 2014 (UTC)

I believe [1] got it the wrong way around - some environments like GNOME write to this file (e.g, to change the language), so you shouldn't edit it manually. See [2]. -- Alad (talk) 04:04, 1 August 2014 (UTC)

I have no idea, perhaps it's better to add an Accuracy template and move this discussion to Talk:Locale. -- Kynikos (talk) 06:47, 2 August 2014 (UTC)

System-wide vs. user setting

The Funtoo FAQ recommends setting a user locale if it is different from en_US.UTF8:

I recommend two things. First, it's strongly recommended that you always use a UTF-8-based locale.
The next thing I recommend is to try to avoid changing the global system LANG setting, and instead set the LANG setting on a per-user basis by adding the desired LANG setting to your ~/.bashrc. This will preserve English log output in /var/log and make it easier to search for more common matching English strings on the Internet when you need help.

Sounds like a fair argument to me. Objections to adjust the article accordingly? -- Alad (talk) 21:36, 21 August 2014 (UTC)

This is bigger than that, it's always been Arch's custom to instruct users to use a global locale. They may have a point at Funtoo, but this should be brought up in a ML or the forums first, and then at least Installation guide#Configure the system and Beginners' Guide#Locale should be changed accordingly. -- Kynikos (talk) 01:23, 23 August 2014 (UTC)

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

This is quite old, and presumably not relevant anymore as it apparently only happened during the switch to systemd. If anyone agrees then just close this. --Pyroh (talk) 20:07, 22 August 2014 (UTC)