summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-05 00:12:39 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-05 00:12:39 +0000
commit8f29114a94e480a13b232ac2119b398902b54492 (patch)
tree75ef0d06f1708c452e22bfc0b5b6067a622450fd /pym
parent7972eb4a69922ab6611f2850d59c2ca64a6af913 (diff)
downloadportage-8f29114a94e480a13b232ac2119b398902b54492.tar.gz
portage-8f29114a94e480a13b232ac2119b398902b54492.tar.bz2
portage-8f29114a94e480a13b232ac2119b398902b54492.zip
In _check_build_log(), open the log in text mode (unicode).
svn path=/main/trunk/; revision=13914
Diffstat (limited to 'pym')
-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 3da1281b9..eb7547c30 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -5012,7 +5012,8 @@ def _check_build_log(mysettings, out=None):
if logfile is None:
return
try:
- f = open(logfile)
+ f = codecs.open(logfile, mode='r',
+ encoding='utf_8', errors='replace')
except EnvironmentError:
return