You are not logged in.

#1 2012-10-29 01:46:37

jiewmeng
Member
Registered: 2012-02-09
Posts: 118

Locale Errors and GParted not starting

I've recently installed Arch Linux (thus with new install medium/systemd and such). I noticed when I try to run gparted

[jiewmeng@JM ~]$ gksu gparted

(process:4456): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files

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

(gpartedbin:4485): 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:  4485 Trace/breakpoint trap   $BASE_CMD

I noticed the starting warning (about locale) appears if I start Sublime Text (subl) or a few other applications also.

[jiewmeng@JM ~]$ gksu gparted

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

The workaround for GParted is to use

export LC_ALL=C

But how do I fix this permanently?

[jiewmeng@JM ~]$ sudo locale
[sudo] password for jiewmeng: 
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en-US.UTF-8
LC_CTYPE="en-US.UTF-8"
LC_NUMERIC="en-US.UTF-8"
LC_TIME="en-US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en-US.UTF-8"
LC_MESSAGES="en-US.UTF-8"
LC_PAPER="en-US.UTF-8"
LC_NAME="en-US.UTF-8"
LC_ADDRESS="en-US.UTF-8"
LC_TELEPHONE="en-US.UTF-8"
LC_MEASUREMENT="en-US.UTF-8"
LC_IDENTIFICATION="en-US.UTF-8"
LC_ALL=

Seems like I am missing some file/directory?


Computer Science Student, Web Developer

Offline

#2 2012-10-29 09:30:48

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Locale Errors and GParted not starting

Did you enable your desired locale in /etc/locale.gen and then run locale-gen?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2012-10-29 09:54:09

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,575

Re: Locale Errors and GParted not starting

Shouldn't it be en_US.UTF-8 instead of en-US.UTF-8

Check your /etc/locale.conf

Offline

Board footer

Powered by FluxBB