[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 19:48:04 CEST 2012
    
    
  
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Oct 22 19:47:52 2012 +0200| [bd544fff4fa8186436a2792aed375d08a82f635f] | 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=bd544fff4fa8186436a2792aed375d08a82f635f
---
 modules/gui/macosx/playlist.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 1fd89d0..314c9da 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -792,7 +792,8 @@
         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 : ""]];
 
         /* 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