mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix ftl check failing in non-utf8 locale
This commit is contained in:
parent
d273ebb756
commit
d7516ae8d6
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def check_missing_terms(path: str) -> bool:
|
||||||
|
|
||||||
def check_file(path: str, fix: bool) -> bool:
|
def check_file(path: str, fix: bool) -> bool:
|
||||||
"True if file is ok."
|
"True if file is ok."
|
||||||
orig_text = open(path).read()
|
orig_text = open(path, encoding="utf8").read()
|
||||||
obj = parse(orig_text, with_spans=False)
|
obj = parse(orig_text, with_spans=False)
|
||||||
# make sure there's no junk
|
# make sure there's no junk
|
||||||
for ent in obj.body:
|
for ent in obj.body:
|
||||||
|
|
Loading…
Reference in a new issue