[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Bug: io.open fails on empty file name
- From: Thijs Schreijer <thijs@...>
- Date: Mon, 30 Mar 2015 08:39:43 +0000
> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Jonathan Goble
> Sent: maandag 30 maart 2015 0:50
> To: Lua mailing list
> Subject: Re: Bug: io.open fails on empty file name
>
> I get the same result in Lua 5.1.4 on Win8.1. However, the bug does
> not occur in 5.3.0 on Ubuntu 14.04; Lua instead throws an error "bad
> argument #2 to 'open' (invalid mode)".
>
Tested with;
- Lua 5.1.5,
- on Win7-64bit
Executing;
- print(io.open("", ""))
When;
- compiled using MinGW; works as expected; "Invalid argument" error
- compiled using Win7 SDK; crashes
Thijs