Fix caret position for errors with utf source

This commit is contained in:
Mathias Baumann
2020-05-25 14:27:03 +02:00
parent 7a6ad61583
commit 7f3d437ffe
7 changed files with 31 additions and 4 deletions
@@ -8,7 +8,7 @@ from os.path import join, isfile
def extract_test_cases(path):
lines = open(path, 'rb').read().splitlines()
lines = open(path, encoding="utf8", errors='ignore', mode='rb').read().splitlines()
inside = False
delimiter = ''