| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @pablogsal for commit 6be12fc 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
| // cookie is just the fd | ||
| borrowed b; | ||
| b.fd = fd; | ||
| return fopencookie(b.cookie, "r", cookie_io); |
There was a problem hiding this comment.
fopencookie is a non-standard GNU extension. Is this available in all platforms targetted by web assembly? Does this need a configure check?
Sorry, something went wrong.
There was a problem hiding this comment.
I had a configure check in my first version of the patch. I got rid of it because it makes no sense. Both WASI and Emscripten use musl libc as upper half of libc and it always provides fdopencookie.
I wish their was a more elegant way to solve the problem. _PyTokenizer_FindEncodingFilename uses a FILE pointer instead of a file descriptor.
Sorry, something went wrong.
There was a problem hiding this comment.
Ugh, I am honestly not very happy with the amount of extra code, but I understand why is needed.
Sorry, something went wrong.
|
The failing tests on macOS ARM64 and FreeBSD are unrelated to my changes. |
Sorry, something went wrong.
There was a problem hiding this comment.
The code looks good to me, but I had no way to test it myself, so I am not formally approving. Feel free to land if you want though
Sorry, something went wrong.
|
I can shorten the code. fopencookie handles NULL function pointers correctly. Our code only needs a read callback. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
https://bugs.python.org/issue46315