]> git.ipfire.org Git - pakfire.git/commitdiff
Sanitize the LANG variable in the build chroot.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Mar 2012 17:07:32 +0000 (18:07 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Mar 2012 17:07:32 +0000 (18:07 +0100)
python/pakfire/builder.py

index 2f42d01cfdd0899e68921e0bc63182a0eb1a41b5..aefd46612c336e592e1f30036e987db9131e1845 100644 (file)
@@ -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",