summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/test-install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/test-install.py b/lib/spack/spack/cmd/test-install.py
index a9f9331fcb..d916519227 100644
--- a/lib/spack/spack/cmd/test-install.py
+++ b/lib/spack/spack/cmd/test-install.py
@@ -27,6 +27,7 @@ import xml.etree.ElementTree as ET
import itertools
import re
import os
+import codecs
import llnl.util.tty as tty
from llnl.util.filesystem import *
@@ -107,7 +108,7 @@ class BuildId(object):
def fetch_log(path):
if not os.path.exists(path):
return list()
- with open(path, 'rb') as F:
+ with codecs.open(path, 'rb', 'utf-8') as F:
return list(line.strip() for line in F.readlines())