Skip to content

Commit

Permalink
Issue python#13063: the Windows error ERROR_NO_DATA (numbered 232 and…
Browse files Browse the repository at this point in the history
… described

as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).
  • Loading branch information
pitrou committed Oct 7, 2011
2 parents 14c0f03 + 586bfe4 commit 789e7ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ What's New in Python 3.3 Alpha 1?
Core and Builtins
-----------------

- Issue #13063: the Windows error ERROR_NO_DATA (numbered 232 and described
as "The pipe is being closed") is now mapped to POSIX errno EPIPE
(previously EINVAL).

- Issue #12911: Fix memory consumption when calculating the repr() of huge
tuples or lists.

Expand Down
1 change: 1 addition & 0 deletions PC/errmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ int winerror_to_errno(int winerror)
case 202: return 8;
case 206: return 2;
case 215: return 11;
case 232: return 32;
case 267: return 20;
case 1816: return 12;
default: return EINVAL;
Expand Down
3 changes: 3 additions & 0 deletions PC/generrmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ int main()
/* Issue #12802 */
if (i == ERROR_DIRECTORY)
errno = ENOTDIR;
/* Issue #13063 */
else if (i == ERROR_NO_DATA)
errno = EPIPE;
else
continue;
}
Expand Down

0 comments on commit 789e7ad

Please sign in to comment.