Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sim/win/hostfs: set O_BINARY for windows hostfs as default
Since the initial default setting in MSVC is text mode ( O_TEXT ): https://learn.microsoft.com/en-us/cpp/c-runtime-library/text-and-binary-mode-file-i-o?view=msvc-170 In order to unify the translation behavior with unix, 1. set O_BINARY for hostfs as default 2. enable default text mode if the application specifies flag O_TEXT Signed-off-by: chao an <anchao@xiaomi.com>
- Loading branch information