| 132 | } |
| 133 | |
| 134 | FILE* OpenFileUtf8(const std::string& path, const char* mode) { |
| 135 | #if defined(_WIN32) || defined(_WIN64) |
| 136 | return _wfopen(internal::WideFromUtf8(path).c_str(), |
| 137 | internal::WideFromUtf8(mode).c_str()); |
| 138 | #else |
| 139 | return fopen(path.c_str(), mode); |
| 140 | #endif |
| 141 | } |
| 142 | |
| 143 | bool CanOpenFileUtf8(const std::string& path) { |
| 144 | FILE* fp = OpenFileUtf8(path, "rb"); |
no test coverage detected