[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: file:write() fails silently for read-only files
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 7 Sep 2011 08:15:48 +0200
On Wed, Sep 7, 2011 at 1:09 AM, Josh Simmons <simmons.44@gmail.com> 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.