diff options
author | Brad King <brad.king@kitware.com> | 2019-11-13 14:48:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-13 14:48:23 (GMT) |
commit | dc01c73f2d187d3a7e20527372f4e2888ffedc0a (patch) | |
tree | 4b3f5b18bbd70f2d9d51c13525d0ccd26924aac1 /Source/kwsys/SystemTools.cxx | |
parent | 011693867ac0ee81912cca8e2289b9c584ccfb9b (diff) | |
parent | 78ce959a40c788356e304829d5f93742c5c83fa6 (diff) | |
download | CMake-dc01c73f2d187d3a7e20527372f4e2888ffedc0a.zip CMake-dc01c73f2d187d3a7e20527372f4e2888ffedc0a.tar.gz CMake-dc01c73f2d187d3a7e20527372f4e2888ffedc0a.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2019-11-13 (e67ed8ef)
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index ce4d6ef..dcf05da 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -2326,14 +2326,8 @@ bool SystemTools::TextFilesDiffer(const std::string& path1, static bool CopyFileContentBlockwise(const std::string& source, const std::string& destination) { -// Open files -#if defined(_WIN32) - kwsys::ifstream fin( - Encoding::ToNarrow(Encoding::ToWindowsExtendedPath(source)).c_str(), - std::ios::in | std::ios::binary); -#else + // Open files kwsys::ifstream fin(source.c_str(), std::ios::in | std::ios::binary); -#endif if (!fin) { return false; } @@ -2344,14 +2338,8 @@ static bool CopyFileContentBlockwise(const std::string& source, // that do not allow file removal can be modified. SystemTools::RemoveFile(destination); -#if defined(_WIN32) - kwsys::ofstream fout( - Encoding::ToNarrow(Encoding::ToWindowsExtendedPath(destination)).c_str(), - std::ios::out | std::ios::trunc | std::ios::binary); -#else kwsys::ofstream fout(destination.c_str(), std::ios::out | std::ios::trunc | std::ios::binary); -#endif if (!fout) { return false; } |