[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multilingual text in frame
From: |
Jason Rumney |
Subject: |
Re: multilingual text in frame |
Date: |
20 Jan 2003 20:53:05 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Jason Rumney <address@hidden> writes:
> It is a bug. I remember on MS-Windows adding some code to decode the
> frame title by locale-coding-system before using it. Looking at
> x_set_name() in xfns.c, the X code seems to decode it by the
> compound-text coding system. I do not know enough about X to know
> whether that is the appropriate thing to do.
It seems from the documentation I can find about XSetWMName (), that
compound-text is the correct choice for encoding. But I think that on
a non-Latin-1 system, the following code around line 2520 of xfns.c
might do the wrong thing:
coding_system = Qcompound_text;
text.value = x_encode_text (name, coding_system, 0, &bytes, &stringp);
text.encoding = (stringp ? XA_STRING
: FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT);
You could try changing the last line above to
text.encoding = FRAME_X_DISPLAY_INFO (f)->Xatom_COMPOUND_TEXT;
If that fixes your problem, then I think a more correct change might
be to change x_encode_text to not set stringp to 1 for Latin-1
strings, since the same problem likely exists elsewhere (menus maybe).
Re: multilingual text in frame, Kenichi Handa, 2003/01/20
Re: multilingual text in frame, Phillip Lord, 2003/01/21