Merge branch 'mkenum-build-fix' into 'main'

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

See merge request GNOME/glib!2857
This commit is contained in:
Marco Trevisan 2022-09-19 14:34:01 +00:00
commit d29e936a6c

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