You are not logged in.

#1 2019-07-31 01:20:44

a7med-7amdy
Member
Registered: 2016-08-21
Posts: 9

[SOLVED] problem with locale

when I run gtk application like rhythmbox it works giving error like this
(process:18856): Gtk-WARNING **: 02:49:26.093: Locale not supported by C library.
but some plugins are not working at all

Traceback (most recent call last):
  File "/usr/lib/rhythmbox/plugins/alternative-toolbar/alternative-toolbar.py", line 114, in do_activate
    cl.switch_locale(cl.Locale.LOCALE_DOMAIN)
  File "/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_preferences.py", line 151, in switch_locale
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.7/locale.py", line 604, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting.

this is locale output

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_GB.UTF-8
LC_COLLATE=C
LC_MONETARY=ar_EG.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_GB.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I'v uncommented en_US.utf8 in locale.conf and generated it with locale-gen

Last edited by a7med-7amdy (2019-08-04 22:47:38)

Offline

#2 2019-07-31 02:10:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] problem with locale

Make sure LC_ALL isn't set in the environment. Sounds like it's set to an empty string.

Offline

#3 2019-07-31 13:32:25

a7med-7amdy
Member
Registered: 2016-08-21
Posts: 9

Re: [SOLVED] problem with locale

Scimmia wrote:

Make sure LC_ALL isn't set in the environment. Sounds like it's set to an empty string.

how can I make sure?

Offline

#4 2019-07-31 13:37:58

papavlos
Member
Registered: 2017-09-23
Posts: 70

Re: [SOLVED] problem with locale

set | grep LC_ALL

will show you if it exists, even if set to an empty string.

unset LC_ALL

wil destroy it.

Last edited by papavlos (2019-07-31 13:41:17)

Offline

#5 2019-07-31 14:20:39

a7med-7amdy
Member
Registered: 2016-08-21
Posts: 9

Re: [SOLVED] problem with locale

papavlos wrote:
set | grep LC_ALL

will show you if it exists, even if set to an empty string.

unset LC_ALL

wil destroy it.

this is the right solution
thank you

Offline

Board footer

Powered by FluxBB