A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-November/018512.html below:

[Python-Dev] Re: test_file failing on Windows

[Python-Dev] Re: test_file failing on Windows [Python-Dev] Re: test_file failing on WindowsJeremy Hylton jeremy@zope.com
Fri, 9 Nov 2001 14:32:42 -0500 (EST)
open_the_file() uses errno to check the return value of fopen().  On
Windows, should it use GetLastError() ?

It seems that errno usually does the right thing on Windows, in that
it's usually set to the expected error when fopen() fails.  The change
I made checks for EINVAL on Unix, which means the mode argument was
invalid.  It looks like Windows sets errno to 0 in this case.  I
wondered if GetLastError() would provide a more helpful error code.

Jeremy




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4