From 12a92370168a095e86cc83228687ece0978d1525 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 28 Jun 2019 21:06:27 +0800 Subject: [PATCH] Make all rename utf8 path aware --- src/online/http_request.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/online/http_request.cpp b/src/online/http_request.cpp index bd9fef00a..7b7070818 100644 --- a/src/online/http_request.cpp +++ b/src/online/http_request.cpp @@ -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) {