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>
Wed, 30 Nov 2016 08:25:09 +0000 (09:25 +0100)
commitaeceb3901a5c36154321be78993ed68d537fc9b4
treebab22fb4bb7851bb77e98ad10310136212fd4ab9
parentf644a6da7a6f11d20116842e2ce1c7e9c0b0ad64
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