mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibCore/System: Do not translate \n <-> \r\n when reading/writing files
on Windows
This commit is contained in:
parent
d224d1f22c
commit
67db10f26e
Notes:
github-actions[bot]
2024-11-29 09:51:51 +00:00
Author: https://github.com/stasoid
Commit: 67db10f26e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2549
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue