summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-10 01:04:47 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-10 01:04:47 +0000
commitef79089821905fab5aa9b95ada3076bad70e391f (patch)
tree552f243e3e9300554839c324e4bf3f3a59688ea9 /bin
parentbdf9748377e40813b7794992f656bf1c33516132 (diff)
downloadportage-ef79089821905fab5aa9b95ada3076bad70e391f.tar.gz
portage-ef79089821905fab5aa9b95ada3076bad70e391f.tar.bz2
portage-ef79089821905fab5aa9b95ada3076bad70e391f.zip
Add localization variables (LANG and LC_*) to the environment whitelist and
filter them from the saved environment (so user settings override those of binary packages). Thanks to Fabio Erculiani <lxnay@g.o> for reporting. (trunk r14975) svn path=/main/branches/2.1.7/; revision=15009
Diffstat (limited to 'bin')
-rwxr-xr-xbin/isolated-functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 4f1ad1c63..911f65bc2 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -506,6 +506,11 @@ save_ebuild_env() {
unset ECHANGELOG_USER GPG_AGENT_INFO \
SSH_AGENT_PID SSH_AUTH_SOCK STY WINDOW XAUTHORITY
+ # localization settings
+ unset LANG LC_COLLATE LC_CTYPE LC_MESSAGES \
+ LC_MONETARY LC_NUMERIC LC_TIME LC_PAPER \
+ LC_ALL
+
# CCACHE and DISTCC config
unset ${!CCACHE_*} ${!DISTCC_*}