Skip to content

Commit

Permalink
Fix expected file format under Windows.
Browse files Browse the repository at this point in the history
Make sure we handle "\r\n" correctly under Windows and Unix.
  • Loading branch information
andreygorbachevrabobank authored and HowardHinnant committed Sep 30, 2024
1 parent 3613526 commit 510a054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class file_streambuf
{
# 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
Expand Down

0 comments on commit 510a054

Please sign in to comment.