summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-03-24 22:58:37 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-03-29 16:48:47 (GMT)
commitf8ed8bef84dcd4746ee223bd34f05b7c995cb363 (patch)
tree7a995b966fa2fd6067c2e0a4469e67b9a727df8b /Tests/CMakeLib
parent8647c6cd6825764b8cd69828c185bad14ffc8a7e (diff)
downloadCMake-f8ed8bef84dcd4746ee223bd34f05b7c995cb363.zip
CMake-f8ed8bef84dcd4746ee223bd34f05b7c995cb363.tar.gz
CMake-f8ed8bef84dcd4746ee223bd34f05b7c995cb363.tar.bz2
testEncoding: use cmsys::ifstream
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/testEncoding.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeLib/testEncoding.cxx b/Tests/CMakeLib/testEncoding.cxx
index 20ba9e3..403c896 100644
--- a/Tests/CMakeLib/testEncoding.cxx
+++ b/Tests/CMakeLib/testEncoding.cxx
@@ -1,4 +1,4 @@
-#include <fstream>
+#include <cmsys/FStream.hxx>
#include <iostream>
#include <string>
@@ -39,7 +39,7 @@ int main(int argc, char* argv[])
setEncoding(consoleOut, CP_OEMCP);
} // else AUTO
#endif
- std::ifstream file(argv[2]);
+ cmsys::ifstream file(argv[2]);
if (!file.is_open()) {
std::cout << "Failed to open file: " << argv[2] << std::endl;
return 2;