Make all rename utf8 path aware

This commit is contained in:
Benau 2019-06-28 21:06:27 +08:00
parent 31caa7e056
commit 12a9237016

View File

@ -295,9 +295,7 @@ namespace Online
"Could not removed existing addons.xml file.");
m_curl_code = CURLE_WRITE_ERROR;
}
int ret = rename((m_filename+".part").c_str(),
m_filename.c_str() );
int ret = FileUtils::renameU8Path(m_filename + ".part", m_filename);
// In case of an error, set the status to indicate this
if (ret != 0)
{