[vlc-devel] commit: macosx: small hack to display UTF-8 characters correctly in the debug msg log ( Felix Paul Kühne )
git version control
git at videolan.org
Fri Aug 15 13:05:18 CEST 2008
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Aug 15 13:08:04 2008 +0200| [795a3c12f351dc9133197f327c5cfe3fdbf218a0] | committer: Felix Paul Kühne
macosx: small hack to display UTF-8 characters correctly in the debug msg log
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=795a3c12f351dc9133197f327c5cfe3fdbf218a0
---
modules/gui/macosx/intf.m | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 217ce3d..542359c 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1681,8 +1681,7 @@ end:
o_attr = [NSDictionary dictionaryWithObject: pp_color[i_type]
forKey: NSForegroundColorAttributeName];
- o_msg = [NSString stringWithFormat: @"%s\n",
- p_intf->p_sys->p_sub->p_msg[i_start].psz_msg];
+ o_msg = [[NSString stringWithUTF8String: p_intf->p_sys->p_sub->p_msg[i_start].psz_msg] stringByAppendingString: @"\n"];
o_msg_color = [[NSAttributedString alloc]
initWithString: o_msg attributes: o_attr];
[o_msg_arr addObject: [o_msg_color autorelease]];
More information about the vlc-devel
mailing list