You are not logged in.

#1 2011-05-01 17:11:35

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

[SOLVED] Locale issues

As the title says, I'm having locale issues.
It's preventing me from starting deluge as it gives me this error (at least, I think the error is caused by this):

ââ[andy @ vithon]-[01:16:25]
ââ[~]-[$]> deluge-gtk

(process:3098): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
No handlers could be found for logger "deluge"
[ERROR   ] 13:16:28 daemon:107 Unable to initialize gettext/locale: unsupported locale setting
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
zsh: abort      deluge-gtk

Here's the outputs of `locale -a` and `locale`:

ââ[andy @ vithon]-[01:14:25]
ââ[~]-[$]> locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX
es_US
es_US.iso88591
es_US.utf8
ââ[andy @ vithon]-[01:14:27]
ââ[~]-[$]> locale
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="en_US.UTF-8"
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=

And also, those a-like symbols in the front of my prompt shouldn't be there.
It's not an error in the prompt, it's that the symbols it's supposed to show aren't getting shown.

Last edited by Arm-the-Homeless (2011-05-01 20:21:51)

Offline

#2 2011-05-01 20:23:30

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [SOLVED] Locale issues

Never mind, I'm retarded.

In /etc/locale.gen, I had es_US.UTF-8 and es_US.iso88591 uncommented, but had en_US.UTF-8 and en_US.iso88591 commented.
Fixed that and now everything works as expected.

Offline

#3 2013-02-09 13:55:51

jay1901
Member
Registered: 2013-02-09
Posts: 10

Re: [SOLVED] Locale issues

Just had the same problem, useful advice for newbies:

After you uncomment and save your /etc/locale.gen, don't forget to run (as root)

locale-gen

for the changes to take effect.

Offline

#4 2013-02-10 03:15:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Locale issues

^^ That is timeless advice. 

Good thing, because this thread is a  year and a half old tongue
Careful of necro-bumping


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

Board footer

Powered by FluxBB