Re: Getting gimp to work with $LANG?

2000-09-09 Thread Marc Lehmann

On Tue, Sep 05, 2000 at 11:38:28PM +0200, Carl-Johan Sveningsson [EMAIL PROTECTED] 
wrote:
 Everytime I start up my gimp, every single one of the perl-scripts
 complain about not reconizing the swedish $LANG, "sv"...gimp does, but I

This is a common problem with many distributions. Basically, neither
redhat nor suse (debian seems to have fixed this recently) do not come
with full locales for shortened locale settings (for example, LANG=de_DE
or even LANG=deutsch works, but LANG=de not, since there is no full de
locale), so setting the locale fails.

Arguably this is correct, since LANG=de (or LANG=sv) is not a full locale
specification (no charset, no country), which means it is unclear what
collating sequence (for example) should be used, so setting the locale
fails.

Since glibc translates messages (LC_MESSAGES!) regardless of wether a
locale was set or not it's not obvious that it failed (except for perl,
which complains), but every other locale aspect (character types, sorting
etc..) will not work as expected.

 suspect that all the errors and checking done by perl makes the
 startup-process take much longer than it has to.

However, this is only done once for each script and never again. After
that script-fu completely dominates the startup-time, so nuking that one
will decrease average loading time the most (if that is a concern for
you).

 Anyone know of a way to fix this, or is the only solution to unset $LANG

You can either use a correct locale setting (try LANG=svenska, maybe or
LANG=sv_SV.iso8859-1), install a full locale (man localedef) or just
slience the perl warning (env. variable PERL_BADLANG=0). The latter is
quick way to silence the warning, but note that the locale still is
invalid and won't be used by perl or gimp or any other program.

Yet another solution would be to NOT set LANG (since this is the global
setting), but LC_MESSAGES only, since there *is* a message catalog for
LANG=sv.

More tips can be found e.g. in the manpage for perllocale under "LOCALE
PROBLEMS".

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |



Getting gimp to work with $LANG?

2000-09-06 Thread Carl-Johan Sveningsson

Hi all.

Everytime I start up my gimp, every single one of the perl-scripts
complain about not reconizing the swedish $LANG, "sv"...gimp does, but I
suspect that all the errors and checking done by perl makes the
startup-process take much longer than it has to.

Anyone know of a way to fix this, or is the only solution to unset $LANG
for gimp?



perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "sv"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


Thanks.

/WoC


"Succumb to natural tendencies. Be hateful and boring."

  ICQ# 2357535
http://come.to/woc/
  http://wlug.westbo.se/

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GSS/CS/P d(++,--)--- s-: a--- C(,!) UL+++ P+++$ L++ E-$ W++(@)
N? o? K? w-- !O M- V? PS++(@) PE- Y? PGP?++ t-++ 5?+++ X+ R-
tv-! b DI++ D+ G e$ h--(+,) r(+++,---) y+** 
--END GEEK CODE BLOCK--