lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Wed, Sep 7, 2011 at 1:09 AM, Josh Simmons <> wrote:
> The failure is not triggered be errno itself though, so it's possible
> for any of the functions to return error but not set errno (on windows
> anyway).

Yes, the equivalent C program on Windows XP does not set errno after a
fprintf to a read-only file, _if_ you have previously read from it.
So definitely not Lua's fault here, looks like a CRT bug.

steve d.