summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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().