You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows #49802
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-03-24.14:18:52.082>created_at=<Date2009-03-24.13:42:04.236>labels= ['interpreter-core', 'type-bug']
title='With invalid FD, os.device_encoding() returns None under Linux but raises an error under Windows'updated_at=<Date2009-03-24.14:18:52.080>user='https://github.com/pitrou'
Activity
pitrou commentedon Mar 24, 2009
This is a potentially annoying incompatibility between platforms.
Under Linux:
pitrou commentedon Mar 24, 2009
And under Windows:
pitrou commentedon Mar 24, 2009
This may be related to the following lines in posixmodule.c:
if (!_PyVerify_fd(fd))
return posix_error();
kristjanvalur commentedon Mar 24, 2009
Right, None is clearly the right result. Fixed in revision 70581
pitrou commentedon Mar 24, 2009
Thanks!