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 eb7547c30..ca2764335 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -726,7 +726,8 @@ def env_update(makelinks=1, target_root=None, prev_mtimes=None, contents=None,
ldsoconf_path = os.path.join(target_root, "etc", "ld.so.conf")
try:
- myld = open(ldsoconf_path)
+ myld = codecs.open(ldsoconf_path, mode='r',
+ encoding='utf_8', errors='replace')
myldlines=myld.readlines()
myld.close()
oldld=[]