diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-10 01:04:47 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-10 01:04:47 +0000 |
commit | ef79089821905fab5aa9b95ada3076bad70e391f (patch) | |
tree | 552f243e3e9300554839c324e4bf3f3a59688ea9 /bin | |
parent | bdf9748377e40813b7794992f656bf1c33516132 (diff) | |
download | portage-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-x | bin/isolated-functions.sh | 5 |
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_*} |