Skip to content

Commit c3db429

Browse files
authored
Explicitely read as bytes and decode as utf-8 (to resolve issues on windows) (#47)
ref: #46
1 parent 85c80a8 commit c3db429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def __init__(self,opt,cp,hpath,testname,pos=0):
231231
self.script = os.path.split(sys.argv[0])[1]
232232
self.pickle = ".".join((os.path.splitext( self.script )[0], "pkl"))
233233
self.data = {}
234-
self.raw = fixEndings(open( os.path.sep.join(hpath)).read())
234+
self.raw = fixEndings(open( os.path.sep.join(hpath), 'br').read().decode('utf-8'))
235235

236236
def parse(self):
237237
for element in ["MODE","CSL"]:

0 commit comments

Comments
 (0)