mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
Fix expected file format under Windows.
Make sure we handle "\r\n" correctly under Windows and Unix.
This commit is contained in:
parent
361352673d
commit
510a05429f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user