[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug: io.open fails on empty file name
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 29 Mar 2015 19:54:49 -0300
This is the right place to report bugs.
> 1. Create program containing: io.open("", "")
> 2. Execute program
> Expected result:
> error: file name cannot be empty
> Actual result:
> crash: lua.exe doesn't react
Do you actually get a crash or just no response from lua.exe?
Try changing the program to
print(io.open("", ""))
With this change, I get
bad argument #2 to 'open' (invalid mode)
as expected.