summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index c8100b396..480e00f81 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -131,7 +131,8 @@ _content_encoding = _encodings['content']
_fs_encoding = _encodings['fs']
_merge_encoding = _encodings['merge']
-def _unicode_encode(s, encoding=_encodings['content'], errors='replace'):
+def _unicode_encode(s, encoding=_encodings['content'],
+ errors='backslashreplace'):
if isinstance(s, unicode):
s = s.encode(encoding, errors)
return s