In _check_build_log(), open the log in text mode (unicode).
authorZac Medico <zmedico@gentoo.org>
Wed, 5 Aug 2009 00:12:39 +0000 (00:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 5 Aug 2009 00:12:39 +0000 (00:12 -0000)
svn path=/main/trunk/; revision=13914

pym/portage/__init__.py

index 3da1281b93a7db54cb44bfa875ec5b762e44bc57..eb7547c3044e05806323e90c33ddd8f47066f641 100644 (file)
@@ -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