-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
os.file: Fix os file tell for windows #24218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Connected to Huly®: V_0.6-22601 |
It seems that fd := C._wopen(p.to_wide(), flags, permission);
cfile := C.fdopen(fd, &char(mode.str));
C._fseeki64(cfile, 0, C.SEEK_END);
x := C._telli64(fd);
y := C._ftelli64(cfile);
// x y may different, not sure. |
@kbkpbot, 3354c11 passed the CI, can we merge it? |
I think this PR can merge now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work.
I tried with msvc, clang, gcc, and tcc, all worked.
Fix issue #24217