From: Zac Medico Date: Sat, 28 Feb 2009 05:43:29 +0000 (-0000) Subject: In _ensure_default_encoding(), make sure the default encoding is normalized. X-Git-Tag: v2.2_rc24~83 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dfc897f21bb3ad74e134cded53fefce9f0f6e63d;p=portage.git In _ensure_default_encoding(), make sure the default encoding is normalized. svn path=/main/trunk/; revision=12732 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 9a563a54b..faf549ff6 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7612,7 +7612,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()