[Buildd-tools-devel] unsetting locale

Jeroen van Wolffelaar jeroen@wolffelaar.nl
Fri, 8 Oct 2004 00:07:00 +0200


On Thu, Oct 07, 2004 at 08:45:04PM +0200, Michael Banck wrote:
> Hi,
> 
> one thing which has always bugged me is that sbuild apparently does not
> reset the locale, and perl always barfs on this, cluttering up the
> build-log:
> 
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>         LANGUAGE = (unset),
>         LC_ALL = (unset),
>         LC_CTYPE = "de_DE.ISO-8859-15@euro",
>         LANG = "POSIX"
>     are supported and installed on your system.
> 
> Does anybody know how to best reset the locale, so that these messages
> go away? (btw, they also break the perl test-suite, resulting in some
> spurious failed tests where output is compared)

Make sure that LC_*, LANG env vars are not set, or set to C. Dunno about
'LANGUAGE', what perl is mentioning too, though.

In fact, I don't know why there isn't an 'env -i' or something... I
guess on the buildd's itself it's okay, and there is no 'weird' locale?

--Jeroen

-- 
Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl