mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
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:
parent
9acb3e9dbc
commit
ebcc3c01db
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user