| 67 | } // namespace |
| 68 | |
| 69 | FILE* OpenFileUtf8(const std::string& fileName, const char* mode) { |
| 70 | #ifdef _WIN32 |
| 71 | return _wfopen(internal::WideFromUtf8(fileName).c_str(), |
| 72 | internal::WideFromUtf8(mode).c_str()); |
| 73 | #else |
| 74 | return fopen(fileName.c_str(), mode); |
| 75 | #endif |
| 76 | } |
| 77 | |
| 78 | FILE* CreateTempFileNearUtf8(const std::string& targetFileName, |
| 79 | std::string* fileName) { |
no test coverage detected