Skip to content

Commit

Permalink
Fixed encoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvergnaud committed Dec 2, 2014
1 parent e3a9236 commit 538e30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/antlr4/FileStream.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, fileName: str, encoding=None):
# read binary to avoid line ending conversion
with open(fileName, 'rb') as file:
bytes = file.read()
data = codecs.decode(bytes)
data = codecs.decode(bytes, encoding)
super(type(self), self).__init__(data)


Expand Down

0 comments on commit 538e30b

Please sign in to comment.