[Python-Dev] RE: test_file failing on Windows

Jack Jansen jack@oratrix.nl
Fri, 09 Nov 2001 22:30:42 +0100


Recently, "Tim Peters" <tim.one@home.com> said:
> [Jeremy]
> > open_the_file() uses errno to check the return value of fopen().  On
> > Windows, should it use GetLastError() ?
> 
> The MS docs don't document anything about fopen failure modes, beyond that
> it returns NULL then.

Same here with CodeWarrior on the Mac: stdio errors return NULL or -1
and that is it, errno isn't touched, not even for fopen() file not
found, etc.

If the ANSI standard requires errno to be set and people can point me
to the right section I can submit an error report...
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.cwi.nl/~jack        | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm