VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Locale Not Supported  (Read 3512 times)

Pita

  • Vectorian
  • ****
  • Posts: 1326
Locale Not Supported
« on: September 10, 2010, 11: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, 02:30:43 am by Pita »
Logged

Pita

  • Vectorian
  • ****
  • Posts: 1326
Re: Locale Not Supported
« 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
Re: Locale Not Supported
« 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: 1326
Re: Locale Not Supported
« 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