From a27654f6567e1b15368a19e1953b7c3cb863927d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 23 Feb 2009 16:41:49 +0000 Subject: [PATCH] Fix default_encoding logic in _ensure_default_encoding(). svn path=/main/trunk/; revision=12695 --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(). -- 2.26.2