(trunk, libT) #4160 'foreign character support' -- merge mike.dld's 4160-02b-path.patch, which updates the codebase to use the new tr_sys_path_*() portability wrappers introduced in 4160-02a

This commit is contained in:
Jordan Lee
2014-07-08 00:08:43 +00:00
parent d7f4478679
commit 0323639e57
26 changed files with 235 additions and 386 deletions

View File

@@ -13,6 +13,7 @@
#include <unistd.h> /* getcwd() */
#include <libtransmission/transmission.h>
#include <libtransmission/file.h>
#include <libtransmission/makemeta.h>
#include <libtransmission/tr-getopt.h>
#include <libtransmission/utils.h>
@@ -158,7 +159,7 @@ main (int argc, char * argv[])
if (outfile == NULL)
{
char * base = tr_basename (infile);
char * base = tr_sys_path_basename (infile, NULL);
char * end = tr_strdup_printf ("%s.torrent", base);
char * cwd = tr_getcwd ();
outfile = out2 = tr_buildPath (cwd, end, NULL);