From 510a05429fc16fe1a010babebb7a367e30bcf887 Mon Sep 17 00:00:00 2001 From: Andrey Gorbachev <105877601+andreygorbachevrabobank@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:54:43 +0100 Subject: [PATCH] Fix expected file format under Windows. Make sure we handle "\r\n" correctly under Windows and Unix. --- src/tz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tz.cpp b/src/tz.cpp index e308b74..511b1dc 100644 --- a/src/tz.cpp +++ b/src/tz.cpp @@ -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