VectorLinux
July 26, 2014, 06:50:24 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Locale Not Supported  (Read 2708 times)
Pita
Vectorian
****
Posts: 1308


« on: September 10, 2010, 10:44:44 pm »

Lately if I open certain applications like 'mc' I get:

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

or worse:

Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/share/system-config-printer/my-default-printer.py", line 31, in <module>
    locale.setlocale (locale.LC_ALL, "")
  File "/usr/lib/python2.5/locale.py", line 478, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

or

 WARNING **: Unsupported locale en_US.ISO8859-1! Please use a locale with .UTF-8 suffix! For example: export LANGUAGE=en_US.UTF-8

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

Most applications then still open.

My setting in /etc/profile.d/lang.sh is en_US that is when 'mc' complains. If I change
others complain.

Could it be something broke administering locale and which one would
then have to be reinstalled?

« Last Edit: September 11, 2010, 01:30:43 am by Pita » Logged
Pita
Vectorian
****
Posts: 1308


« Reply #1 on: November 20, 2010, 07:42:19 pm »

Lately if I open certain applications like 'mc' I get:

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

or worse:

Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/share/system-config-printer/my-default-printer.py", line 31, in <module>
    locale.setlocale (locale.LC_ALL, "")
  File "/usr/lib/python2.5/locale.py", line 478, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

or

 WARNING **: Unsupported locale en_US.ISO8859-1! Please use a locale with .UTF-8 suffix! For example: export LANGUAGE=en_US.UTF-8

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

Most applications then still open.

My setting in /etc/profile.d/lang.sh is en_US that is when 'mc' complains. If I change
others complain.

Could it be something broke administering locale and which one would
then have to be reinstalled?



This problem above persists and a cron job fails which calls for the opening
of a xmessage due to wrong locale setting.

Where is that "C" library?

/usr/bin/locale -a gives a long list including my setting of en_US.

Help appreciated.
Logged
toothandnail
Tester
Vectorian
****
Posts: 2527


« Reply #2 on: December 04, 2010, 08:53:38 am »

Any recent version of MC should work with a utf8 locale setting. If you are still using Aterm, it will not - aterm does not understand unicode at all.

Your choices are to find another terminal to run MC in, or to run MC with a script and and set the locale for it before starting MC. Personally, I'd get rid of Aterm and use either the Xfce terminal or Xterm (or, as an alternative, you could try Rxvt-Unicode, which should be in the repo).

Many other things will expect utf8 and will not work correctly with a non-utf8 locale.

One place where Vector does lag a bit is correct support for locales. I've had a few problems getting things to work when I have LANG=en_GB.utf8 set.

Paul.
Logged
Pita
Vectorian
****
Posts: 1308


« Reply #3 on: December 05, 2010, 04:07:31 pm »

Thanks! I am now using VL6SOHO and there is no more such problem. Already
on one of your earlier advice I changed to urxvt.

Regards
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!