You are not logged in.

#1 2011-11-21 12:33:06

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Locale issue

Hi there,

I don't consider myself a newbie, but this is something I can't understand. It shouldn't be a big issue, so I guess it's a newbie issue smile

Thing is, I can't get my desktop to work fully localised. Most of my apps (including everything related to gnome3) default to English, even though I've set up es_ES.utf8 locale in locale.conf:

$  cat /etc/locale.conf 
LANG=es_ES.utf8
LC_ALL=es_ES.utf8
LC_TIME=es_ES.utf8
LC_MESSAGES=es_ES.utf8
LC_COLLATE=es_ES.utf8
LC_CTYPE=es_ES.utf8
LC_MONETARY=es_ES.utf8
LC_NUMERIC=es_ES.utf8

Some output that might be useful:

$  locale -a
C
en_US.utf8
es_ES@euro
es_ES.iso885915@euro
es_ES.utf8
POSIX
$  locale
locale: No se puede establecer LC_ALL al local predeterminado: No existe el fichero o el directorio
LANG=es_ES.utf8
LC_CTYPE=es_ES.utf8
LC_NUMERIC=es-ES
LC_TIME=es-ES
LC_COLLATE=es_ES.utf8
LC_MONETARY=es-ES
LC_MESSAGES=es_ES.utf8
LC_PAPER="es_ES.utf8"
LC_NAME="es_ES.utf8"
LC_ADDRESS="es_ES.utf8"
LC_TELEPHONE="es_ES.utf8"
LC_MEASUREMENT=es-ES
LC_IDENTIFICATION="es_ES.utf8"
LC_ALL=

(the first line means "locale: LC_ALL can't be set to default locale: no such file or directory")
$  grep LOCALE /etc/rc.conf
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: Set the locale during daemon startup and during the boot
LOCALE="es_ES.UTF-8"
DAEMON_LOCALE="no"

Any ideas? Of course, I can provide any other info needed.

Thanks all!

Offline

#2 2011-11-21 16:31:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Locale issue

Offline

#3 2011-11-21 17:26:19

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

Nope, I use gnome3 and gdm

Offline

#4 2011-11-22 10:13:31

ryuslash
Member
Registered: 2010-10-11
Posts: 58
Website

Re: Locale issue

Have you checked the Language & Region settings under System Settings in gnome?

Offline

#5 2011-11-22 10:31:02

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

I've just tried and I think System Settings is the only app in gnome that shows up in Spanish. Then, in Language & Region I have Unspecified [ANSI_X3.4-1968] (I understand it means ASCII encoding), but if I click on any of the other options it crashes. The same happens if I try to add a new Format language (there are none at the moment), but the section about keyboard layout is fine.

I've now launched System Settings via gnome-control-center command, and I get a gtk warning and then a segfault then it crashes, nothing else. In case it's useful, this is the warning:

(process:2262): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

Any ideas?

Offline

#6 2011-11-22 19:55:26

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: Locale issue

Surgat_ wrote:
(process:2262): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

Really just a guess, but it may have sth to do with this recent update...


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#7 2011-11-22 21:43:29

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

I followed that when it came out. And the problem actually started then, but I've done it again just in case and it didn't work either.

Offline

#8 2011-11-23 15:19:59

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

An update on this: today I noticed that on gdm login screen, the date was correctly localized in Spanish, but as soon as I logged in it turned back into English

Offline

#9 2011-11-23 18:27:58

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Locale issue

Seems like this is a dupe of https://bugs.archlinux.org/task/26525. Are you using ZSH?

Offline

#10 2011-11-23 22:20:44

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

I don't think it's the same issue, or I can't find any similarities. This is about apps showing in default English, and an error when I run 'locale'. I don't use zsh btw

Offline

#11 2011-11-29 01:09:21

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

No more ideas? Can anyone using gnome3 post his locale.conf file? There might be something wrong with mine...

Offline

#12 2011-11-29 01:20:28

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Offline

#13 2011-11-29 09:23:11

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

I understand that means that it's fixed in git but it hasn't come out in a new package, because the patch came out on Nov 27th and the last update in [core] was on Nov 18th. Am I right?

Offline

#14 2011-11-29 11:01:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Locale issue

I was suggesting that you try the patch (it hasn't been merged yet, as the maintainer is traveling). I'm not convinced it fixes this particular problem but I'd like to know if it does.

Offline

#15 2011-11-29 23:52:29

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

I've just tried it and it didn't work. Thanks for the idea though.

Again, can anyone post a locale.conf file in working with gnome3?

Offline

#16 2011-12-02 15:43:49

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Locale issue

looks like I have a similar problem since started using zsh.... the locale set in rc.conf is en_US.UTF-8, but the command locale show me this:

LANG=C
LC_CTYPE=C
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

and all the prompts I tried in zsh look garbled.

Offline

#17 2011-12-02 18:17:58

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Locale issue

I found what my problem was. I was starting openbox from lxdm. After stopping it and starting using startx everything is back to normal.

Offline

#18 2011-12-06 20:34:26

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

It still doesn't look like my problem, and mine doesn't seem to be solved like yours because I use gdm (and gnome is supposed to be started from gdm, I guess)

Offline

#19 2011-12-07 12:40:08

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Locale issue

Try to start gnome using the .xinit method. Delete gdm from the DAEMONS array in /etc/rc.conf and try starting gnome from .xinitrc

exec ck-launch-session gnome-session

and then see if you have the same issue.

Offline

#20 2011-12-07 13:49:37

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

Yes, I do. All the related output I can find is the one I posted in #5 in this thread.

Offline

#21 2011-12-07 14:15:28

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: Locale issue

Remove LC_ALL=es_ES.utf8  from /etc/locale.conf and make sure you have LOCALE="es_ES.UTF-8" in /etc/rc.conf, then boot and check.

I can't find the reference right now, but it was something about LC_ALL messing all other LC settings up if set in locale.conf. I've had similar troubles with locale, removing LC_ALL helped.

Here's my locale.conf:

LANG="fi_FI.utf8"
LC_CTYPE="fi_FI.utf8"
LC_NUMERIC="fi_FI.utf8"
LC_TIME="fi_FI.utf8"
LC_COLLATE="fi_FI.utf8"
LC_MONETARY="fi_FI.utf8"
LC_MESSAGES="fi_FI.utf8"
LC_PAPER="fi_FI.utf8"
LC_NAME="fi_FI.utf8"
LC_ADDRESS="fi_FI.utf8"
LC_TELEPHONE="fi_FI.utf8"
LC_MEASUREMENT="fi_FI.utf8"
LC_IDENTIFICATION="fi_FI.utf8"

Offline

#22 2011-12-07 14:32:55

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

Nope, it didn't work either...

$  cat /etc/locale.conf 
LANG="es_ES.utf8"
LC_CTYPE="es_ES.utf8"
LC_NUMERIC="es_ES.utf8"
LC_TIME="es_ES.utf8"
LC_COLLATE="es_ES.utf8"
LC_MONETARY="es_ES.utf8"
LC_MESSAGES="es_ES.utf8"
LC_PAPER="es_ES.utf8"
LC_NAME="es_ES.utf8"
LC_ADDRESS="es_ES.utf8"
LC_TELEPHONE="es_ES.utf8"
LC_MEASUREMENT="es_ES.utf8"
LC_IDENTIFICATION="es_ES.utf8"

And in rc.conf:

LOCALE="es_ES.UTF-8"

Then, after rebooting:

$  locale
locale: No se puede establecer LC_ALL al local predeterminado: No existe el fichero o el directorio
LANG=es_ES.utf8
LC_CTYPE=es_ES.utf8
LC_NUMERIC=es-ES
LC_TIME=es-ES
LC_COLLATE=es_ES.utf8
LC_MONETARY=es-ES
LC_MESSAGES=es_ES.utf8
LC_PAPER=es_ES.utf8
LC_NAME=es_ES.utf8
LC_ADDRESS=es_ES.utf8
LC_TELEPHONE=es_ES.utf8
LC_MEASUREMENT=es-ES
LC_IDENTIFICATION=es_ES.utf8
LC_ALL=

(the first sentence means: LC_ALL can't be set to default locale: no such file or directory)

But gnome still shows everything in English. Any other ideas?

Last edited by Surgat_ (2011-12-07 14:34:16)

Offline

#23 2011-12-07 15:11:27

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: Locale issue

Looking at the output of locale, something is changing "es_ES.utf8" into "es-ES" (in LC_NUMERIC, LC_TIME, LC_MEASUREMENT). I'm not familiar with Gnome, but I'm guessing it sets these things internally somewhere, overriding what has been set before it starts.

Time to do some grepping?

Edit: Is there a "control panel" in Gnome, with an entry for "international settings"?

Edit 2: Oops, that was asked already. I need more coffee...

Last edited by samuvuo (2011-12-07 15:14:32)

Offline

#24 2011-12-08 20:11:17

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: Locale issue

Surgat_, I had the same problem as you today, ie:

(process:8609): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: locale::facet::_S_create_c_locale name not valid

/usr/sbin/gparted: line 99:  8609 Trace/breakpoint trap   $BASE_CMD

here are the steps I took to solve my issue:

1. Uncomment your locale in /etc/locale.gen. This should match rc.conf.
2. run locale-gen

If you run locale -a before and after you should be able to see the issue being solved.

If we both had the same problem then maybe we should report a bug? I don't know what caused it but I did just do an update.

btw, I don't have an /etc/locale.conf file.

Last edited by JamieKitson (2011-12-08 20:15:34)

Offline

#25 2011-12-09 09:52:12

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Locale issue

@JamieKitson: if you check the output of locale -a in my first post, you can see that my locale is already generated. I'm not right in front of that computer now, but I'm pretty sure that it's uncommented in locale.gen (otherwise it wouldn't appear in locale -a).

@samuvuo: I will try some grepping later, or maybe tomorrow. But still, if LANG is correctly set, I think I should see some Spanish around... and I can only see it in Firefox (because I installed firefox-es-es). Maybe I should try without a locale.conf file...

Offline

Board footer

Powered by FluxBB