[vlc-commits] macosx: fixed Reveal-in-Finder for eastern european umlauts and probably other characters without a ISO-Latin fallback (close #7631)
Felix Paul Kühne
git at videolan.org
Mon Oct 22 20:04:44 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Oct 22 19:47:52 2012 +0200| [999533ac722bed2de768c00d7aa6858f474ae558] | committer: Felix Paul Kühne
macosx: fixed Reveal-in-Finder for eastern european umlauts and probably other characters without a ISO-Latin fallback (close #7631)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=999533ac722bed2de768c00d7aa6858f474ae558
---
modules/gui/macosx/playlist.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 1fd89d0..682be91 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -792,7 +792,10 @@
if (! p_item || !p_item->p_input)
continue;
- o_mrl = [[NSMutableString alloc] initWithFormat: @"%s", decode_URI(input_item_GetURI(p_item->p_input))];
+ char * psz_url = decode_URI(input_item_GetURI(p_item->p_input));
+ o_mrl = [[NSMutableString alloc] initWithString: [NSString stringWithUTF8String: psz_url ? psz_url : ""]];
+ if (psz_url != NULL)
+ free( psz_url );
/* perform some checks whether it is a file and if it is local at all... */
if ([o_mrl length] > 0) {
More information about the vlc-commits
mailing list