On Thu, Nov 21, 2019 at 10:30:38AM +0800, yanminhui163 wrote: > I had compiled on NeoKylin (i18n LANG=zh_CN.UTF-8), but gtk menu's text is > wrong.
Please keep the qemu-devel mailing list Cc'ed (reply-to-all should do this). So qemu doesn't do a full locate setup, to avoid confusing non-gtk parts of qemu (see longish comments in ui/gtk.c). Which is probably the reason why the menus are not working properly, any non-ascii characters are not displayed as question marks. Explicitly calling bind_textdomain_codeset() does indeed fix that. It might not work for non-utf8 locales (latin1, big5, ...), but is still a clear improvement over the current situation. Unlike setlocale() it should not have unwanted side effects elsewhere, so lets go with it. Queued up for 4.2. thanks, Gerd
