020-locale.patch 842 B

123456789101112131415161718192021222324
  1. From ebcc3c01db27b79af38b42c3c52a79d0225f744c Mon Sep 17 00:00:00 2001
  2. From: Seungha Yang <seungha@centricular.com>
  3. Date: Sun, 14 Aug 2022 04:56:20 +0900
  4. Subject: [PATCH] glib-mkenums: Specify output encoding as UTF-8 explicitly for
  5. non-English locale
  6. Fixup regression introduced by
  7. https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2797
  8. ---
  9. gobject/glib-mkenums.in | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. --- a/gobject/glib-mkenums.in
  12. +++ b/gobject/glib-mkenums.in
  13. @@ -19,6 +19,9 @@ import errno
  14. import codecs
  15. import locale
  16. +# Non-english locale systems might complain to unrecognized character
  17. +sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding='utf-8')
  18. +
  19. VERSION_STR = '''glib-mkenums version @VERSION@
  20. glib-mkenums comes with ABSOLUTELY NO WARRANTY.
  21. You may redistribute copies of glib-mkenums under the terms of