From bd85a50aa9296aa120a92ecf8f6fe206cb721062 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:29:45 +0000 Subject: [PATCH] In _ensure_default_encoding(), make sure the default encoding is normalized. (trunk r12732) svn path=/main/branches/2.1.6/; revision=12981 --- pym/portage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 5e3e70c1a..9e7b7a76d 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7599,7 +7599,7 @@ def _ensure_default_encoding(): """ default_fallback = 'utf_8' - default_encoding = sys.getdefaultencoding() + default_encoding = sys.getdefaultencoding().lower().replace('-', '_') required_encodings = set(['ascii', 'utf_8']) required_encodings.add(default_encoding) missing_encodings = set() -- 2.26.2