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

Bug#348963: pkgsel: perl warning can be disabled by using PERL_BADLANG



kmuto wrote:
> But I think we can disable a perl warning by just setting PERL_BADLANG=0
> instead of doing LANG=C.
> LANG=C makes all of messages derived from pkgsel to English. It's not
> so good for non English people.

The LANG=C setting only affects chroot calls in pkgsel, not calls to
in-target which is used for all interaction and package installation.

These are the only chroot calls that are affected:

                log-output -t pkgsel chroot /target dpkg-divert \
                        --package pkgsel --rename --quiet --remove "$divert"

        log-output -t pkgsel chroot /target dpkg-divert --package pkgsel \
                --rename --quiet --add "$divert"
config=$(chroot /target debconf-apt-progress --config| sed "s/$/;/")

        log-output -t pkgsel chroot /target scrollkeeper-update -q || true

None of these output any text at all.

The d-i LANG setting is always C.UTF-8, no matter what language the
install is happening in. This is not an appropriate LANG to use in the
chroot, since it's not a valid libc locale.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: