diff src/video/x11/SDL_x11wm.c @ 3998:098ac044cd2f SDL-1.2

Fixed bug #447 Xlib uses the native locale, not latin1 ... the question is... what does the server use? :)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 04 Jul 2007 07:54:06 +0000
parents 1a327643e741
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/x11/SDL_x11wm.c	Wed Jul 04 04:27:47 2007 +0000
+++ b/src/video/x11/SDL_x11wm.c	Wed Jul 04 07:54:06 2007 +0000
@@ -257,13 +257,13 @@
 #endif
 
 	if ( title != NULL ) {
-		char *title_latin1 = SDL_iconv_utf8_latin1((char *)title);
-		if ( !title_latin1 ) {
+		char *title_locale = SDL_iconv_utf8_locale(title);
+		if ( !title_locale ) {
 			SDL_OutOfMemory();
 			return;
 		}
-		status = XStringListToTextProperty(&title_latin1, 1, &titleprop);
-		SDL_free(title_latin1);
+		status = XStringListToTextProperty(&title_locale, 1, &titleprop);
+		SDL_free(title_locale);
 		if ( status ) {
 			XSetTextProperty(SDL_Display, WMwindow, &titleprop, XA_WM_NAME);
 			XFree(titleprop.value);
@@ -280,13 +280,13 @@
 #endif
 	}
 	if ( icon != NULL ) {
-		char *icon_latin1 = SDL_iconv_utf8_latin1((char *)icon);
-		if ( !icon_latin1 ) {
+		char *icon_locale = SDL_iconv_utf8_locale(icon);
+		if ( !icon_locale ) {
 			SDL_OutOfMemory();
 			return;
 		}
-		status = XStringListToTextProperty(&icon_latin1, 1, &iconprop);
-		SDL_free(icon_latin1);
+		status = XStringListToTextProperty(&icon_locale, 1, &iconprop);
+		SDL_free(icon_locale);
 		if ( status ) {
 			XSetTextProperty(SDL_Display, WMwindow, &iconprop, XA_WM_ICON_NAME);
 			XFree(iconprop.value);