mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibCore/System: Do not translate \n <-> \r\n when reading/writing files
on Windows
This commit is contained in:
parent
d224d1f22c
commit
67db10f26e
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user