aboutsummaryrefslogtreecommitdiff
path: root/libs/glib2/patches/020-locale.patch
blob: 9451634cb4bb813583e1189c3e6f6d434596aeeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From ebcc3c01db27b79af38b42c3c52a79d0225f744c Mon Sep 17 00:00:00 2001
From: Seungha Yang <seungha@centricular.com>
Date: Sun, 14 Aug 2022 04:56:20 +0900
Subject: [PATCH] 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
---
 gobject/glib-mkenums.in | 3 +++
 1 file changed, 3 insertions(+)

--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -22,6 +22,9 @@ import locale
 # Non-english locale systems might complain to unrecognized character
 sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding='utf-8')
 
+# 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