From d64b975bd9503a62b8065b5b7fb6ca601d5e8bc6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 18 Mar 2012 18:07:32 +0100 Subject: [PATCH] Sanitize the LANG variable in the build chroot. --- python/pakfire/builder.py | 3 +++ 1 file changed, 3 insertions(+) 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", -- 2.39.5