summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2013-07-24 15:03:21 +0200
committerMartin Pitt <martinpitt@gnome.org>2013-07-24 15:03:21 +0200
commit88373f198f295bbdd5820006ffcfd5b0876bc5e2 (patch)
tree7db8232eb1289562718f1fb76fc3d25cf88b48f3
parent21e8b62d46a856cc5acef97607604855f52334c7 (diff)
udev-syntax-check.py: Read input file with UTF-8 encoding
-rwxr-xr-xtools/udev-syntax-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/udev-syntax-check.py b/tools/udev-syntax-check.py
index 71490de..f55e2fc 100755
--- a/tools/udev-syntax-check.py
+++ b/tools/udev-syntax-check.py
@@ -33,7 +33,7 @@ args_assign = re.compile('(ATTR|ENV|IMPORT){([a-zA-Z0-9_.-]+)}\s*=\s*"([^"]*)"$'
result = 0
lineno = 0
for path in sys.argv[1:]:
- for line in open(path):
+ for line in open(path, encoding='UTF-8'):
lineno += 1
# filter out comments and empty lines