Setting other LC_* affects printf behavior and breaks QMP.
We don't have much beside menu item strings localized, so
restrict the locale setting to LC_MESSAGES.

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
 ui/gtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/gtk.c b/ui/gtk.c
index a17b1d1..a0b2340 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1950,7 +1950,7 @@ void gtk_display_init(DisplayState *ds, bool full_screen, 
bool grab_on_hover)
 
     s->free_scale = FALSE;
 
-    setlocale(LC_ALL, "");
+    setlocale(LC_MESSAGES, "");
     bindtextdomain("qemu", CONFIG_QEMU_LOCALEDIR);
     textdomain("qemu");
 
-- 
1.8.3.1


Reply via email to