فهرست منبع

Merge pull request #5379 from IvanSavenko/chronicle_install_fix

Fixes Chronicles installation on Windows with non-ascii chars in path
Ivan Savenko 8 ماه پیش
والد
کامیت
2beb4c6aa4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/filesystem/CArchiveLoader.cpp

+ 1 - 1
lib/filesystem/CArchiveLoader.cpp

@@ -225,7 +225,7 @@ void CArchiveLoader::extractToFolder(const std::string & outputSubFolder, CInput
 	boost::filesystem::path extractedFilePath = createExtractedFilePath(outputSubFolder, entry.name, absolute);
 
 	// writeToOutputFile
-	std::ofstream out(extractedFilePath.string(), std::ofstream::binary);
+	std::ofstream out(extractedFilePath.c_str(), std::ofstream::binary);
 	out.exceptions(std::ifstream::failbit | std::ifstream::badbit);
 	out.write(reinterpret_cast<char *>(data.data()), entry.fullSize);