[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#63906: debconf doesn't recognize $LANG if it is set to 'de'



reassign 63906 perl-5.005
thanks

Othmar Pasteka wrote:
> Package: debconf
> Version: 0.2.80.14
> Severity: normal
> 
> hi,
> 
> i just trasnslated apt-setup.temdetes and wanted to test it and found out
> that it just recognizes my locale setting of LANG if it is de_DE or de_AT
> or something similar but it won't recognize it if LANG is set just to
> 'de'. this should probably be fixed.

Either this is a general bug in perl, or this is not a bug. I don't know
enough about locale settings to say. The following simdee perl program
demonstrates the same problem you are seeing:

joey@gumdrop:~>LANG=de perl -e 'use POSIX qw{setlocale};my $language=setlocale(5); print $language,"\n"'
perl: warning: Setting locale failed.
perl: warning: deease check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "de"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
C
joey@gumdrop:~>LANG=de_DE perl -e 'use POSIX qw{setlocale};my $language=setlocale(5); print $language,"\n"'
de_DE

Since perl decides it does not like the locale setting, and resets it,
debconf never gets a chance to use LANG=de, which is does support fine in its
own i19n code anyway.

perllocale(1p) discusses this type of thing, and says this error usually
means that "your locale settings were wrong, they mention locales your system
has never heard of, or the locale installation in your system has problems",
but locale -a lists "de" as a valid locale along with "de_DE" and "deutsch",
and /usr/share/locale/de/ does exist and is populated. Furthermore, all other
german localized programs I have tried (ie: tar, rpm) work fine with LANG=de.

So I tend to think this is some nasty problem in perl's locale handling.

-- 
see shy jo



Reply to: