diff options
Diffstat (limited to 'cpp/src/IcePatch2Lib/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2Lib/Util.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IcePatch2Lib/Util.cpp b/cpp/src/IcePatch2Lib/Util.cpp index 7e49a32d2bf..2fc00be9d7c 100644 --- a/cpp/src/IcePatch2Lib/Util.cpp +++ b/cpp/src/IcePatch2Lib/Util.cpp @@ -422,8 +422,12 @@ IcePatch2::readDirectory(const string& pa) #ifdef _WIN32 + // + // IcePatch2 doesn't support to use string converters, so don't need to use + // any string converter in nativeToWnative or wnativeToNative conversions. + // StringSeq result; - const wstring fs = IceUtil::stringToWstring(simplify(path + "/*")); + const wstring fs = IceUtil::nativeToWnative(0, 0, simplify(path + "/*")); struct _wfinddata_t data; intptr_t h = _wfindfirst(fs.c_str(), &data); @@ -434,7 +438,7 @@ IcePatch2::readDirectory(const string& pa) while(true) { - string name = IceUtil::wstringToString(data.name); + string name = IceUtil::wnativeToNative(0, 0, data.name); assert(!name.empty()); if(name != ".." && name != ".") |