extras: make build_pot better handle user encodings
commit64e4aef0bb1abdc3fb55d70ce187611ba20e7d32
authorDavid Aguilar <davvid@gmail.com>
Sun, 14 Mar 2021 18:59:44 +0000 (14 11:59 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sun, 14 Mar 2021 19:03:42 +0000 (14 12:03 -0700)
tree48bfdbdcd6998a01e20f5653b37e194b52306aa3
parent55464c43e0e01b4096f90936e725eb8412afe96b
extras: make build_pot better handle user encodings

If the user has a non-utf-8 locale then the build_pot code will
not correctly read the utf-8 encoded pot files.

Read bytes and decode from utf-8.

Related-to: #1019
Signed-off-by: David Aguilar <davvid@gmail.com>
extras/build_pot.py