fixed utf-8 verification bug and filename collision resolver

This commit is contained in:
Arvid Norberg
2013-02-24 10:16:57 +00:00
parent 3599b130c0
commit 7b53dd0491
3 changed files with 17 additions and 9 deletions

View File

@@ -1392,6 +1392,12 @@ int test_main()
comparison.resize(TORRENT_MAX_PATH);
TEST_EQUAL(test, comparison);
// replace_extension
test = "foo.bar";
replace_extension(test, "txt");
TEST_EQUAL(test, "foo.txt");
// file class
file f;
#if TORRENT_USE_UNC_PATHS || !defined WIN32