testEncoding: use cmsys::ifstream

This commit is contained in:
Daniel Pfeifer 2017-03-24 23:58:37 +01:00
parent 8647c6cd68
commit f8ed8bef84

View File

@ -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;