1 |
Author: zmedico |
2 |
Date: 2009-08-05 00:12:39 +0000 (Wed, 05 Aug 2009) |
3 |
New Revision: 13914 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/__init__.py |
7 |
Log: |
8 |
In _check_build_log(), open the log in text mode (unicode). |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/__init__.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/__init__.py 2009-08-05 00:09:15 UTC (rev 13913) |
14 |
+++ main/trunk/pym/portage/__init__.py 2009-08-05 00:12:39 UTC (rev 13914) |
15 |
@@ -5012,7 +5012,8 @@ |
16 |
if logfile is None: |
17 |
return |
18 |
try: |
19 |
- f = open(logfile) |
20 |
+ f = codecs.open(logfile, mode='r', |
21 |
+ encoding='utf_8', errors='replace') |
22 |
except EnvironmentError: |
23 |
return |