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 /pym | |
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 'pym')
-rw-r--r-- | pym/portage/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 0690267fa..6b8d44cb7 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1437,6 +1437,13 @@ class config(object): "TMPDIR", "TEMP", "TMP", ] + # localization settings + _environ_whitelist += [ + "LANG", "LC_COLLATE", "LC_CTYPE", "LC_MESSAGES", + "LC_MONETARY", "LC_NUMERIC", "LC_TIME", "LC_PAPER", + "LC_ALL", + ] + # other variables inherited from the calling environment _environ_whitelist += [ "CVS_RSH", "ECHANGELOG_USER", |