hwdb/parse_hwdb.py: open files with UTF-8 mode
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 24 Nov 2016 09:38:01 +0000 (10:38 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 24 Nov 2016 09:38:01 +0000 (10:38 +0100)
commit115a10c58d343d00b73bd9442f7ce6c294debad8
treeb602ca55a0829312ad3ab22b814fb4a16ca9caa6
parentbbe16abb611d05c4aba255433f061bdce8c321ac
hwdb/parse_hwdb.py: open files with UTF-8 mode

pyparsing uses the system locale by default, which in the case of 'C' (in lots
of build environment) will fail with a UnicodeDecodeError. Explicitly open it
with UTF-8 encoding to guard against this.
hwdb/parse_hwdb.py