summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-23 16:41:49 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-23 16:41:49 +0000
commita27654f6567e1b15368a19e1953b7c3cb863927d (patch)
tree8379fa643dadb888a4684a0e0dfb14efd6a8ab9b
parentd3e46cd7a762d32e91b074e41d60cc9a055be4b4 (diff)
downloadportage-a27654f6567e1b15368a19e1953b7c3cb863927d.tar.gz
portage-a27654f6567e1b15368a19e1953b7c3cb863927d.tar.bz2
portage-a27654f6567e1b15368a19e1953b7c3cb863927d.zip
Fix default_encoding logic in _ensure_default_encoding().
svn path=/main/trunk/; revision=12695
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 990da479c..9f0982b0c 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -7558,7 +7558,8 @@ def _ensure_default_encoding():
encodings = _gen_missing_encodings(missing_encodings)
- if default_encoding not in encodings:
+ if default_encoding in missing_encodings and \
+ default_encoding not in encodings:
# Make the fallback codec correspond to whatever name happens
# to be returned by sys.getdefaultencoding().