LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-15-2007, 04:29 PM   #1
Alt-Ox
LQ Newbie
 
Registered: Nov 2007
Posts: 20

Rep: Reputation: 0
Error with Locale C library


hello guys

I'm having some troubles when executing beryl-settings, got the following:

Quote:
alt-ox@pc1:~$ beryl-settings

(beryl-settings:5578): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/bin/beryl-settings", line 35, in ?
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.4/locale.py", line 381, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
Quote:
alt-ox@pc1:~$ cat /etc/debian_version
4.0
alt-ox@pc1:~$ uname -a
Linux pc1 2.6.18 #1 Sat Jun 2 13:03:17 BRT 2007 i686 GNU/Linux
Does anyone know how I can fix it?

Thanks!
 
Old 11-17-2007, 06:56 PM   #2
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
Do you have LANG variables set?
locale.LC_ALL is a language variable.
Check the beryl settings for things like language environment settings...

getdefaultlocale(envvars=('LANGUAGE', 'LC_ALL', 'LC_CTYPE', 'LANG'))
Tries to determine the default locale settings and returns
them as tuple (language code, encoding).

According to POSIX, a program which has not called
setlocale(LC_ALL, "") runs using the portable 'C' locale.
Calling setlocale(LC_ALL, "") lets it use the default locale as
defined by the LANG variable. Since we don't want to interfere
with the current locale setting we thus emulate the behavior
in the way described above.

To maintain compatibility with other platforms, not only the
LANG variable is tested, but a list of variables given as
envvars parameter. The first found to be defined will be
used. envvars defaults to the search path used in GNU gettext;
it must always contain the variable name 'LANG'.


Except for the code 'C', the language code corresponds to RFC
1766. code and encoding can be None in case the values cannot
be determined.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
locale: Cannot Set LC_ALL to default locale: No such file or directory. asym Linux - General 11 10-24-2018 05:54 PM
Gtk-WARNING **: Locale not supported by C library alex.e.c Linux - Software 6 08-11-2014 02:55 PM
When running programs: Locale not supported by C library miceagol Linux - General 2 06-02-2006 04:46 PM
locale not supported by C library the bear Linux - General 2 04-03-2006 11:16 AM
Gdk-WARNING **: locale not supported by C library letdoit Slackware 1 05-28-2004 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration