summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index 8fbf61c12..4fde8785f 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -317,7 +317,7 @@ def grablines(myfilename,recursive=0):
os.path.join(myfilename, f), recursive))
else:
try:
- myfile = open(myfilename, "r")
+ myfile = codecs.open(myfilename, mode='r', errors='replace')
mylines = myfile.readlines()
myfile.close()
except IOError, e: