From c55c974486b0dadf97fe47e2e789d5dba9b77138 Mon Sep 17 00:00:00 2001 From: yanminhui Date: Sat, 16 Nov 2019 11:10:37 +0800 Subject: ui/gtk: fix gettext message's charset. Signed-off-by: yanminhui Message-Id: <20191116031037.1207-1-yanminhui163@163.com> Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') diff --git a/ui/gtk.c b/ui/gtk.c index 2f23922..692ccc7 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -2215,6 +2215,7 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts) setlocale(LC_MESSAGES, ""); setlocale(LC_CTYPE, "C.UTF-8"); bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR); + bind_textdomain_codeset("qemu", "UTF-8"); textdomain("qemu"); window_display = gtk_widget_get_display(s->window); -- cgit v1.1