]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_name): Encode by Qcompound_text unconditionally.
authorKenichi Handa <handa@m17n.org>
Fri, 25 Oct 2002 12:27:32 +0000 (12:27 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 25 Oct 2002 12:27:32 +0000 (12:27 +0000)
(x_set_title): Likewise.

src/xfns.c

index 75b6490da180731c097d0bb50f7f5754adc1bbfd..67e10f742b3e8d7f50c27a46b461b878b27be8a6 100644 (file)
@@ -2320,9 +2320,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);
@@ -2427,9 +2425,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);