]> git.sesse.net Git - vlc/commitdiff
macosx: fixed Reveal-in-Finder for eastern european umlauts and probably other charac...
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 22 Oct 2012 17:47:52 +0000 (19:47 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 22 Oct 2012 18:04:35 +0000 (20:04 +0200)
modules/gui/macosx/playlist.m

index 1fd89d0560547a8ce4a23ad72cdbde3bda717f77..682be91ed9ac9c0d3fda492806aedcebafca40dc 100644 (file)
         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) {