LibCore/System: Do not translate \n <-> \r\n when reading/writing files

on Windows
This commit is contained in:
stasoid 2024-11-24 20:50:39 +05:00 committed by Jelle Raaijmakers
commit 67db10f26e
Notes: github-actions[bot] 2024-11-29 09:51:51 +00:00

View file

@ -23,7 +23,7 @@ ErrorOr<int> open(StringView path, int options, mode_t mode)
{
ByteString string_path = path;
auto sz_path = string_path.characters();
int rc = _open(sz_path, options, mode);
int rc = _open(sz_path, options | O_BINARY, mode);
if (rc < 0) {
int error = errno;
struct stat st = {};