mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
testEncoding: use cmsys::ifstream
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user