From: Zac Medico Date: Wed, 5 Aug 2009 00:12:39 +0000 (-0000) Subject: In _check_build_log(), open the log in text mode (unicode). X-Git-Tag: v2.2_rc36~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f29114a94e480a13b232ac2119b398902b54492;p=portage.git In _check_build_log(), open the log in text mode (unicode). svn path=/main/trunk/; revision=13914 --- 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