FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 08-31-2012, 03:51 PM
Tom Gundersen
 
Default cannot set locale (systemd)

On Aug 31, 2012 5:48 PM, "Tomás Acauan Schertel" <tschertel@gmail.com>
wrote:
>
> Typing locale, I get this:
>
> [tomas@archbook ~]$ locale
> LANG=pt_BR.UTF-8
> LC_CTYPE="pt_BR.UTF-8"
> LC_NUMERIC="pt_BR.UTF-8"
> LC_TIME="pt_BR.UTF-8"
> LC_COLLATE="pt_BR.UTF-8"
> LC_MONETARY="pt_BR.UTF-8"
> LC_MESSAGES=C
> LC_PAPER="pt_BR.UTF-8"
> LC_NAME="pt_BR.UTF-8"
> LC_ADDRESS="pt_BR.UTF-8"
> LC_TELEPHONE="pt_BR.UTF-8"
> LC_MEASUREMENT="pt_BR.UTF-8"
> LC_IDENTIFICATION="pt_BR.UTF-8"
> LC_ALL=
>
> If i call date, get this:
>
> [tomas@archbook ~]$ date
> Sex Ago 31 12:46:31 BRT 2012
>
> Date says it's Sexta (Friday) in Agosto (August). So I think my locale
> configuration is partially correct. Isn't it?

Looks like locale.sh works as intended. Your desktop environment might
override the locale settings though.

Tom
 
Old 08-31-2012, 03:55 PM
arielp
 
Default cannot set locale (systemd)

On 8/31/2012 11:10 AM, Tomás Acauan Schertel wrote:

Both /etc/locale.conf and /etc/environment have this lines:

LANG=pt_BR.UTF-8
LC_MESSAGES=C

And my system (LXDM + XFCE) keeps en_US.

--
Tomás Schertel
----------------------------------------------
Linux Registered User #304838
Arch Linux User
http://www.archlinux.org/
----------------------------------------------


On Fri, Aug 31, 2012 at 11:05 AM, Sébastien Luttringer <seblu@seblu.net>wrote:


On Fri, Aug 31, 2012 at 2:59 PM, Tomás Acauan Schertel
<tschertel@gmail.com> wrote:

My system was already properly configured, but after last update,
everything is en_US.

You can put your local in /etc/environment or in ~/.pam_environment.

--
Sébastien "Seblu" Luttringer
www.seblu.net


I believe XFCE uses LC_MESSAGES to set its language.
 
Old 08-31-2012, 04:14 PM
Tomás Acauan Schertel
 
Default cannot set locale (systemd)

On Fri, Aug 31, 2012 at 12:55 PM, arielp <ariel@drakkn.net> wrote:

> On 8/31/2012 11:10 AM, Tomás Acauan Schertel wrote:
>
>> Both /etc/locale.conf and /etc/environment have this lines:
>>
>> LANG=pt_BR.UTF-8
>> LC_MESSAGES=C
>>
>> And my system (LXDM + XFCE) keeps en_US.
>>
>> --
>> Tomás Schertel
>> ------------------------------**----------------
>> Linux Registered User #304838
>> Arch Linux User
>> http://www.archlinux.org/
>> ------------------------------**----------------
>>
>>
>> On Fri, Aug 31, 2012 at 11:05 AM, Sébastien Luttringer <seblu@seblu.net
>> >wrote:
>>
>> On Fri, Aug 31, 2012 at 2:59 PM, Tomás Acauan Schertel
>>> <tschertel@gmail.com> wrote:
>>>
>>>> My system was already properly configured, but after last update,
>>>> everything is en_US.
>>>>
>>> You can put your local in /etc/environment or in ~/.pam_environment.
>>>
>>> --
>>> Sébastien "Seblu" Luttringer
>>> www.seblu.net
>>>
>>> I believe XFCE uses LC_MESSAGES to set its language.
>

It was working right before last update. What changed?
 
Old 08-31-2012, 04:30 PM
Heiko Baums
 
Default cannot set locale (systemd)

Am Fri, 31 Aug 2012 12:10:01 -0300
schrieb Tomás Acauan Schertel <tschertel@gmail.com>:

> Both /etc/locale.conf and /etc/environment have this lines:
>
> LANG=pt_BR.UTF-8
> LC_MESSAGES=C
>
> And my system (LXDM + XFCE) keeps en_US.

No, it uses C, because Xfce unfortunately uses LC_MESSAGES, not LANG, to
set its locale.

To get pt_BR.UTF-8 in Xfce you need to remove LC_MESSAGES=C.

If you need the messages in the terminal with the locale C for filing
bug reports e.g., I'd suggest you to always prefix the command with
LC_MESSAGES=C or set an alias for those commands.

This issue has nothing to do with systemd, btw.

Heiko
 
Old 08-31-2012, 04:32 PM
Heiko Baums
 
Default cannot set locale (systemd)

Am Fri, 31 Aug 2012 13:14:24 -0300
schrieb Tomás Acauan Schertel <tschertel@gmail.com>:

> It was working right before last update. What changed?

Nothing, unless you haven't changed your locale configuration or a
package changed it, but then you would have had at least a *.pacnew
file.

Heiko
 
Old 08-31-2012, 04:40 PM
Tomás Acauan Schertel
 
Default cannot set locale (systemd)

Maybe it's GTK related?
I'm using Opera to write this email and it's OK, using pt_BR.... Google
Chrome and LibreOffice are OK also.


--
Tomás Schertel
----------------------------------------------
Linux Registered User #304838
Arch Linux User
http://www.archlinux.org/
----------------------------------------------


On Fri, Aug 31, 2012 at 1:32 PM, Heiko Baums <lists@baums-on-web.de> wrote:

> Am Fri, 31 Aug 2012 13:14:24 -0300
> schrieb Tomás Acauan Schertel <tschertel@gmail.com>:
>
> > It was working right before last update. What changed?
>
> Nothing, unless you haven't changed your locale configuration or a
> package changed it, but then you would have had at least a *.pacnew
> file.
>
> Heiko
>
 

Thread Tools




All times are GMT. The time now is 01:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org