diff options
author | Martin Pitt <martinpitt@gnome.org> | 2013-07-24 15:03:21 +0200 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2013-07-24 15:03:21 +0200 |
commit | 88373f198f295bbdd5820006ffcfd5b0876bc5e2 (patch) | |
tree | 7db8232eb1289562718f1fb76fc3d25cf88b48f3 | |
parent | 21e8b62d46a856cc5acef97607604855f52334c7 (diff) |
udev-syntax-check.py: Read input file with UTF-8 encoding
-rwxr-xr-x | tools/udev-syntax-check.py | 2 |
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 |