Page 1 of 1
Null Characters Break LuaMsg
Posted: 16 Jan 2009, 10:56
by Evil4Zerggin
Already reported to Mantis (
http://spring.clan-sy.com/mantis/view.php?id=1269) but posted here for reference. Basically any LuaMsg including a null character will be received with garbage after the null character. (Null terminates strings in C/C++ but not in Lua.) This poses problems for transmission of binary data.
Re: Null Characters Break LuaMsg
Posted: 16 Jan 2009, 11:54
by lurker
How much binary data? The base64 api lua is nice and convenient. Unless this is part of your plan for reducing the load on the camera widget.
Re: Null Characters Break LuaMsg
Posted: 16 Jan 2009, 12:11
by Evil4Zerggin
It's the camera widget. I think I'm going to end up writing custom pack/unpacks.
Re: Null Characters Break LuaMsg
Posted: 20 Jan 2009, 14:54
by lurker
For anyone else reading, this did get fixed.