Characters of window title bar garbled
Characters of window title bar garbled.
Also App name on Task bar.
This occures when Window title or App name is non-latin.
[Reproduction]
yum install motif-devel xorg-x11-fonts-misc
cc -o title_UTF8 title_UTF8.c -lXm -lXt -lX11
./title_UTF8
title_UTF8.c
You see "this is ae 0097\ae009C...".
Originally "this is 日本語 title" is correct.
[Cause]
This bug is caused by merged following patch.
d62491f4
https://bug752788.bugzilla-attachments.gnome.org/attachment.cgi?id=329286
3.21.3
__
- Convert window titles and wm_class to UTF-8 [Rui; #752788]
d62491f4 uses g_convert() with "LATIN1", it make non-latin characters garbled.
d62491f4
Please revert commit(trash my commit https://gitlab.gnome.org/nakajima/mutter/tree/char_garbled).