From: Michael Tremer Date: Sun, 18 Mar 2012 17:07:32 +0000 (+0100) Subject: Sanitize the LANG variable in the build chroot. X-Git-Tag: 0.9.21~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d64b975bd9503a62b8065b5b7fb6ca601d5e8bc6;p=pakfire.git Sanitize the LANG variable in the build chroot. --- diff --git a/python/pakfire/builder.py b/python/pakfire/builder.py index 2f42d01cf..aefd46612 100644 --- a/python/pakfire/builder.py +++ b/python/pakfire/builder.py @@ -541,6 +541,9 @@ class BuildEnviron(object): "TERM" : os.environ.get("TERM", "dumb"), "PS1" : "\u:\w\$ ", + # Sanitize language. + "LANG" : os.environ.setdefault("LANG", "en_US.UTF-8"), + # Set the container that we can detect, if we are inside a # chroot. "container" : "pakfire-builder",