summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
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()