From 87b4012df99d0107e078d552a3883a94384bf7c1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:15:03 +0000 Subject: [PATCH] Fix default_encoding logic in _ensure_default_encoding(). (trunk r12695) svn path=/main/branches/2.1.6/; revision=12952 --- 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 88a520372..8775b87aa 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7545,7 +7545,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