lua-users home
lua-l archive

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


Hi,
Something it doesn't smell good.
See at:
https://www.virustotal.com/gui/file/f31bcaa4a56b429b07e7064f1732d3078df14e05c133517f1753e05a2755cf21/detection

32 virus engines point to your exe.

regards,
Ranier Vilela

Em seg., 18 de jan. de 2021 às 16:51, <samir.tine@luart.org> escreveu:
Le 2021-01-18 20:40, Ranier Vilela a écrit :
> Hi, nice project.
> What the syntax for the net.Socket?
> sock =  net.Socket("http://200.152.38.155", 80)
>
>  this fail: " in method Socket.constructor : 80"
> enigmatic error.
>
> regards,
> Ranier Vilela
>
> Em seg., 18 de jan. de 2021 às 16:17, <samir.tine@luart.org>
> escreveu:
>
>> Le 2021-01-18 11:54, Egor Skriptunoff a écrit :
>>>> Any feedback will be appreciated !
>>>
>>> The website looks nice! :-)
>>>
>>> I see you have removed os.setlocale() from the standard library.
>>>
>>> How to switch between C locale and national locale?
>>> Which locale is used in string.upper(), pattern "%u" and "str1 <
>> str2"
>>> ?
>>> How are char intervals interpreted in patterns (such as "[A-Z]"
>> but
>>> with unicode symbols)?
>>
>> Thank you for the feedback on the website :)
>>
>> LuaRT does not use the concept of C locale.
>> All the necessary configuration is done during the 'sys' module
>> initialization for writing UTF8 characters to the console (with some
>>
>> limits for some region, see discussion on the console limitation on
>> Windows for some language).
>>
>> String.upper and string.lower uses the Windows API which is quite
>> good
>> for some accentued characters.
>> Char intervals are treated the same. An accentued character (for
>> example
>> "à") is not in the interval [A-Z] (which includes letters, but not
>> accentued letters).
>>
>> Samir

Thanks for your feedback.
You found a bug :)

You should use :
sock =  net.Socket("200.152.38.155", 80)

For an ip address, you should remove the "http://"

Thanks again to the Lua community for your questions.
I don't want to polluate the Lua list with such specific questions that
are out of scope of the list.
Such quesitons should be asked on LuaRT community (link on the LuRT
website).

Samir