lua-users home
lua-l archive

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


On 30/03/15 00:15, Jonathan Goble wrote:
> On Sun, Mar 29, 2015 at 7:03 PM, Jonathan Goble <jcgoble3@gmail.com> wrote:
>> On Sun, Mar 29, 2015 at 6:54 PM, Luiz Henrique de Figueiredo
>> <lhf@tecgraf.puc-rio.br> wrote:
>>> Try changing the program to
>>>         print(io.open("", ""))
>>>
...
> I suspect that the lack of catching the error in 5.1.x is the problem,
> which was apparently fixed in either 5.2 or 5.3. Ubuntu is able to
> recover and fail silently, but Windows can't. So this is most likely a
> Windows issue. (It could also be a problem with the LuaForWindows
> distribution, as that's what I'm using on my Windows machine.)

Just tried running a copy in a debugger (MSVC2010), the error is being
thrown from the MSVCR100.DLL fopen function, it's trapping the empty
mode string in an assert.

MSVC2010 : fopen
https://msdn.microsoft.com/en-us/library/yeby3zcb%28v=vs.100%29.aspx

Which references 'Parameter Validation':
https://msdn.microsoft.com/en-us/library/ksazx244%28v=vs.100%29.aspx

Scott