changeset 56718:0e434700ae47

* xfns.c (x_set_name, x_set_title): Encode title to UTF8 before passing it to gtk_window_set_title.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 19 Aug 2004 17:31:37 +0000
parents f95a8f5985be
children ba478e06c729
files src/ChangeLog src/xfns.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Aug 19 13:59:28 2004 +0000
+++ b/src/ChangeLog	Thu Aug 19 17:31:37 2004 +0000
@@ -1,3 +1,8 @@
+2004-08-19  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
+	passing it to gtk_window_set_title.
+
 2004-08-19  Kim F. Storm  <storm@cua.dk>
 
 	* process.c (wait_reading_process_input): Clean up.
--- a/src/xfns.c	Thu Aug 19 13:59:28 2004 +0000
+++ b/src/xfns.c	Thu Aug 19 17:31:37 2004 +0000
@@ -1651,7 +1651,7 @@
 	  }
 #ifdef USE_GTK
         gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
-                              SDATA (name));
+                              SDATA (ENCODE_UTF_8 (name)));
 #else /* not USE_GTK */
 	XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
 #endif /* not USE_GTK */
@@ -1759,7 +1759,7 @@
 
 #ifdef USE_GTK
         gtk_window_set_title (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
-                              SDATA (name));
+                              SDATA (ENCODE_UTF_8 (name)));
 #else /* not USE_GTK */
 	XSetWMName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
 #endif /* not USE_GTK */