mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
(x_set_name): Encode by Qcompound_text unconditionally.
(x_set_title): Likewise.
This commit is contained in:
parent
be354eca5a
commit
869331eef1
1 changed files with 2 additions and 6 deletions
|
|
@ -2439,9 +2439,7 @@ x_set_name (f, name, explicit)
|
|||
int bytes, stringp;
|
||||
Lisp_Object coding_system;
|
||||
|
||||
coding_system = Vlocale_coding_system;
|
||||
if (NILP (coding_system))
|
||||
coding_system = Qcompound_text;
|
||||
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);
|
||||
|
|
@ -2546,9 +2544,7 @@ x_set_title (f, name, old_name)
|
|||
int bytes, stringp;
|
||||
Lisp_Object coding_system;
|
||||
|
||||
coding_system = Vlocale_coding_system;
|
||||
if (NILP (coding_system))
|
||||
coding_system = Qcompound_text;
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue