Commit 4bc83de7 authored by Claude Paroz's avatar Claude Paroz

Force reading files in utf-8 in potdiff

parent e7a753db
......@@ -6,12 +6,12 @@ USE_DIFFLIB = 0
def diff(pota, potb):
"""Returns a list of differing lines between two text files."""
with open(pota, "r") as f1:
with open(pota, "r", encoding="utf-8") as f1:
data1 = f1.read()
res1 = _parse_contents(data1)
res1.sort()
with open(potb, "r") as f2:
with open(potb, "r", encoding="utf-8") as f2:
data2 = f2.read()
res2 = _parse_contents(data2)
res2.sort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment