[vlc-commits] macosx: fixed display of localized strings in a wrong encoding

Felix Paul Kühne git at videolan.org
Sun Jul 17 15:19:42 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jul 17 15:19:18 2011 +0200| [87529928a5db11c697965d96849a5e4bc0e6ff89] | committer: Felix Paul Kühne

macosx: fixed display of localized strings in a wrong encoding

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87529928a5db11c697965d96849a5e4bc0e6ff89
---

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 9fc99e1..320488b 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -815,7 +815,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     if( psz != NULL )
     {
-        o_str = [[[NSString alloc] initWithFormat:@"%s", psz] autorelease];
+        o_str = [NSString stringWithCString: psz encoding:NSUTF8StringEncoding];
 
         if( o_str == NULL )
         {



More information about the vlc-commits mailing list