changeset 951:121f56c1277d

Date: Sun, 29 Aug 2004 20:55:54 +0200 From: Tomas Kovar Subject: [SDL] [PATCH] UTF-8 support for SDL_WM_SetCaption in OSX Recently, there was patch that added UTF-8 support for SDL_WM_SetCaption in X11 backend. This patch does the same for Quartz (OSX) backend.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 30 Aug 2004 04:21:51 +0000
parents b7a5c1b64829
children 6f5c8bd997aa
files src/video/quartz/SDL_QuartzWM.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzWM.m	Wed Aug 25 05:39:03 2004 +0000
+++ b/src/video/quartz/SDL_QuartzWM.m	Mon Aug 30 04:21:51 2004 +0000
@@ -233,12 +233,12 @@
     if ( qz_window != nil ) {
         NSString *string;
         if ( title != NULL ) {
-            string = [ [ NSString alloc ] initWithCString:title ];
+            string = [ [ NSString alloc ] initWithUTF8String:title ];
             [ qz_window setTitle:string ];
             [ string release ];
         }
         if ( icon != NULL ) {
-            string = [ [ NSString alloc ] initWithCString:icon ];
+            string = [ [ NSString alloc ] initWithUTF8String:icon ];
             [ qz_window setMiniwindowTitle:string ];
             [ string release ];
         }