[issue37705] winerror_to_errno implementation

2022-02-02 Thread miss-islington
miss-islington added the comment: New changeset 38e0b9efdf164be656782db0f969fb536cfbcaf1 by Oleg Iarygin in branch 'main': bpo-37705: Remove orphaned PC/errmap.mak (GH-29724) https://github.com/python/cpython/commit/38e0b9efdf164be656782db0f969fb536cfbcaf1 -- __

[issue37705] winerror_to_errno implementation

2021-11-23 Thread Oleg Iarygin
Change by Oleg Iarygin : -- nosy: +arhadthedev nosy_count: 7.0 -> 8.0 pull_requests: +27961 pull_request: https://github.com/python/cpython/pull/29724 ___ Python tracker ___ __

[issue37705] winerror_to_errno implementation

2019-09-09 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37705] winerror_to_errno implementation

2019-09-09 Thread miss-islington
miss-islington added the comment: New changeset c25759187829d5732eea73f52a269c88aba28371 by Miss Islington (bot) in branch '3.7': bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623) https://github.com/python/cpython/commit/c25759187829d5732eea73f52a269c88aba28371 ---

[issue37705] winerror_to_errno implementation

2019-09-09 Thread miss-islington
miss-islington added the comment: New changeset 68e401fa0b1a3407bce395ad893535f65107ee6e by Miss Islington (bot) in branch '3.8': bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623) https://github.com/python/cpython/commit/68e401fa0b1a3407bce395ad893535f65107ee6e ---

[issue37705] winerror_to_errno implementation

2019-09-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +15403 pull_request: https://github.com/python/cpython/pull/15749 ___ Python tracker ___ __

[issue37705] winerror_to_errno implementation

2019-09-09 Thread Steve Dower
Steve Dower added the comment: New changeset 19052a11314e7be7ba003fd6cdbb5400a5d77d96 by Steve Dower (Zackery Spytz) in branch 'master': bpo-37705: Improve the implementation of winerror_to_errno() (GH-15623) https://github.com/python/cpython/commit/19052a11314e7be7ba003fd6cdbb5400a5d77d96

[issue37705] winerror_to_errno implementation

2019-09-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +15404 pull_request: https://github.com/python/cpython/pull/15750 ___ Python tracker ___ __

[issue37705] winerror_to_errno implementation

2019-09-09 Thread Steve Dower
Steve Dower added the comment: I'm going to merge and backport this all the way to 3.7. Adding a publicly accessible dict for use in Python code should be 3.9 only. -- versions: +Python 3.7, Python 3.8 ___ Python tracker

[issue37705] winerror_to_errno implementation

2019-08-30 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a pull request for this issue. Please take a look. -- nosy: +ZackerySpytz versions: -Python 3.8 ___ Python tracker ___ ___

[issue37705] winerror_to_errno implementation

2019-08-30 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +15291 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15623 ___ Python tracker ___

[issue37705] winerror_to_errno implementation

2019-08-26 Thread Eryk Sun
Eryk Sun added the comment: > It also seems like at least some of the WSA* constants (e.g. > WSAEBADF==10009) are the equivalent errno plus 1 > (e.g.EBADF==9). Should we be mapping those back to the > errno value? Mapping WSAEINTR (10004) -> EINTR (4) and WSAEACCES (10013) -> EACCES (13

[issue37705] winerror_to_errno implementation

2019-08-26 Thread Steve Dower
Steve Dower added the comment: While I'm inclined to think it's okay to find the CRT sources (e.g. "C:\Program Files (x86)\Windows Kits\10\Source\10.0.18362.0\ucrt\misc\errno.cpp") and extract the table from there as part of build, the problem I have is that it is woefully incomplete. I'd m

[issue37705] winerror_to_errno implementation

2019-07-30 Thread Eryk Sun
Eryk Sun added the comment: Special casing of Winsock error codes should be handled in winerror_to_errno rather than in oserror_parse_args, so it's consistently applied everywhere. And it should use the proper range for Winsock, 1-11999 -- not 1-2147483647. Codes above the Winsock ra

[issue37705] winerror_to_errno implementation

2019-07-29 Thread Eryk Sun
New submission from Eryk Sun : OSError and _Py_fstat_noraise rely on winerror_to_errno() in PC/errmap.h in order to translate a Windows system error code into a POSIX errno value. PC/errmap.h is supposed to be generated by PC/generrmap.c, which is based on the old CRT's _dosmapperr() function