[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.execute bug on Windows when the program returns -1
- From: Kubo Takehiro <kubo@...>
- Date: Sun, 6 May 2018 23:41:01 +0900
On Sun, May 6, 2018 at 11:26 PM, Russell Haley <russ.haley@gmail.com> wrote:
>
> On Sun, May 6, 2018 at 4:58 AM, Kubo Takehiro <kubo@jiubao.org> wrote:
>>
>> On Sun, May 6, 2018 at 3:44 PM, Haoqian He <hehaoqian@live.com> wrote:
>> > I have found a bug in the API "os.execute" when it runs a program that
>> > returns -1 on Lua 5.3.4 on Windows (Windows 10Home 64Bit, Version
>> > 10.0.16229
>> > Build 16229)
>>
>> I guess that this issue will be fixed by the following patch.
>> (The patch is for lua 5.3.x. Replace LUA_USE_WINDOWS with LUA_WIN for Lua
>> 5.2.)
>>
>> https://gist.github.com/kubo/28a8a3c66858f6126ffc28f363c9e55f
>>
>> Well, I have not tested it...
>
> I tried applying your patch using get git apply with no success (though the
> working directory is not a git repo. I used --unsafe-paths). Can you
> recommend a patch tool on Windows or should I just apply it manually to
> test?
I uploaded three patched files to the same location.
https://gist.github.com/kubo/28a8a3c66858f6126ffc28f363c9e55f
Click the [Download ZIP] button at the upper right corner.