adapt unicode file path on windows platform

Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
liduo
2026-01-16 14:19:52 +08:00
parent 02c8acf4c5
commit 5b57a64ce3
3 changed files with 70 additions and 16 deletions
+5
View File
@@ -64,6 +64,11 @@ private:
bool IsIgnore(const std::string &filename) const;
static bool RemoveAllDirInner(const FileEntry &entry);
static bool CreateDirsInner(const std::string &path, std::string::size_type offset);
#ifdef _WIN32
static std::wstring AdaptLongPathW(const std::string &path);
static std::string Wstring2String(const std::wstring &wstr);
static std::wstring String2Wstring(const std::string &str);
#endif
FilePath filePath_;
bool isFile_;
static const std::string SEPARATE;
+1 -1
View File
@@ -50,7 +50,7 @@ const static std::string LONG_PATH_HEAD = "\\\\?\\";
const static int32_t VERSION_MAX_LEN = 128;
static const std::string RESTOOL_NAME = "Restool";
static const std::string RESTOOLV2_NAME = "RestoolV2";
static const std::string RESTOOL_VERSION = { " 6.1.0.002" };
static const std::string RESTOOL_VERSION = { " 6.1.0.003" };
const static int32_t TAG_LEN = 4;
constexpr static int DEFAULT_POOL_SIZE = 8;
static std::set<std::string> g_resourceSet;