changeset 48000:5144fabfb105

(x_set_name): Encode by Qcompound_text unconditionally. (x_set_title): Likewise.
author Kenichi Handa <handa@m17n.org>
date Fri, 25 Oct 2002 12:32:18 +0000
parents 379e8a84380d
children 4e7ef1c1f0dd
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Fri Oct 25 12:29:21 2002 +0000
+++ b/src/xfns.c	Fri Oct 25 12:32:18 2002 +0000
@@ -2439,9 +2439,7 @@
 	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 @@
 	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);