abouttreesummaryrefslogcommitdiff
path: root/check_layout.py
diff options
context:
space:
mode:
Diffstat (limited to 'check_layout.py')
-rw-r--r--check_layout.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/check_layout.py b/check_layout.py
index 0208a97..5f90927 100644
--- a/check_layout.py
+++ b/check_layout.py
@@ -116,7 +116,7 @@ def check_layout(layout):
# Fill 'known_keys', which is used for some checks
def parse_known_keys():
global known_keys
- with open("srcs/juloo.keyboard2/KeyValue.java", "r") as f:
+ with open("srcs/juloo.keyboard2/KeyValue.java", "r", encoding="utf-8") as f:
known_keys = set(
( m.group(1) for m in re.finditer('case "([^"]+)":', f.read()) )
)
@@ -134,6 +134,6 @@ for fname in sorted(glob.glob("srcs/layouts/*.xml")):
else:
check_layout(layout)
-with open("check_layout.output", "w") as out:
+with open("check_layout.output", "w", encoding="utf-8") as out:
for w in warnings:
print(w, file=out)