glib-mkenums: Specify output encoding as UTF-8 explicitly for non-English locale

Fixup regression introduced by
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2797
This commit is contained in:
Seungha Yang 2022-08-14 04:56:20 +09:00
parent 9acb3e9dbc
commit ebcc3c01db

View File

@ -19,6 +19,9 @@ import errno
import codecs
import locale
# Non-english locale systems might complain to unrecognized character
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding='utf-8')
VERSION_STR = '''glib-mkenums version @VERSION@
glib-mkenums comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of glib-mkenums under the terms of