qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ui/gtk: fix gettext message's charset.


From: Gerd Hoffmann
Subject: Re: [PATCH] ui/gtk: fix gettext message's charset.
Date: Thu, 21 Nov 2019 11:16:04 +0100
User-agent: NeoMutt/20180716

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]