Skip to content
Snippets Groups Projects
Commit f8ed8bef authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

testEncoding: use cmsys::ifstream

parent 8647c6cd
No related branches found
No related tags found
No related merge requests found
#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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment