Fix expected file format under Windows.

Make sure we handle "\r\n" correctly under Windows and Unix.
This commit is contained in:
Andrey Gorbachev 2024-09-30 18:54:43 +01:00 committed by Howard Hinnant
parent 361352673d
commit 510a05429f

View File

@ -389,7 +389,7 @@ private:
{
# ifdef _WIN32
std::wstring wfilename = convert_utf8_to_utf16(filename);
FILE* file = ::_wfopen(wfilename.c_str(), L"rb");
FILE* file = ::_wfopen(wfilename.c_str(), L"r");
# else // !_WIN32
FILE* file = ::fopen(filename.c_str(), "rb");
# endif // _WIN32