diff options
-rw-r--r-- | pym/portage/__init__.py | 3 |
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 |