[vlc-commits] macosx: work-around crash in stringWithFormat when using the Japanese locale

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


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jul 17 15:57:55 2011 +0200| [bfb63235e058e2b89bf353d6a5f02d8d565e32f9] | committer: Felix Paul Kühne

macosx: work-around crash in stringWithFormat when using the Japanese locale

Fixes #4952

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

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

diff --git a/modules/gui/macosx/about.m b/modules/gui/macosx/about.m
index 4dd4efe..d2088f9 100644
--- a/modules/gui/macosx/about.m
+++ b/modules/gui/macosx/about.m
@@ -100,7 +100,7 @@ static VLAboutBox *_o_sharedInstance = nil;
 #else
         compiler = [NSString stringWithFormat:@"gcc %s", __VERSION__];
 #endif
-        [o_revision_field setStringValue: [NSString stringWithFormat: _NS("Compiled by %s with %@"), VLC_CompileBy(), compiler]];
+        [o_revision_field setStringValue: [NSString stringWithFormat: _NS("Compiled by %@ with %@"), [NSString stringWithUTF8String:VLC_CompileBy()], compiler]];
 
         /* Setup the nameversion field */
         [o_name_version_field setStringValue: [NSString stringWithFormat:@"Version %s (%s)", VERSION_MESSAGE, PLATFORM]];



More information about the vlc-commits mailing list