From 8f29114a94e480a13b232ac2119b398902b54492 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 5 Aug 2009 00:12:39 +0000 Subject: In _check_build_log(), open the log in text mode (unicode). svn path=/main/trunk/; revision=13914 --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22