Windows: fix handling of Unicode paths in Lua
authorPeter Wu <peter@lekensteyn.nl>
Fri, 28 Dec 2018 11:49:33 +0000 (12:49 +0100)
committerAnders Broman <a.broman58@gmail.com>
Sat, 29 Dec 2018 08:27:08 +0000 (08:27 +0000)
commit604aef7164f50d1f547c7c3d2b0b811be6129e4a
tree782e51a68e172caf6e72a7aa768b7de481fe78cf
parenta5a38daba0cc97a80e4d914362849bd91f7fddfe
Windows: fix handling of Unicode paths in Lua

Lua internally uses ANSI C APIs (such as fopen). On many systems (macOS
and Linux for example) these work fine with UTF-8. Windows however
requires special Unicode APIs (such as _wfopen), so patch the Lua
library to interpret paths are UTF-8 and call appropriate Unicode APIs.

Changes compared to the previous LuaBinaries zip archive:

- Patched with UTF-8 support for loadfile, os.execute, etc.
- Built with VS 2015 (VCRUNTIME140.dll) instead of MinGW (MSVCRT.dll).
- Includes PDB file for lua52.dll
- Includes lua52.exe and luac52.exe with UTF-8 argv support (wmain).
- Includes build scripts, source files and README.md.
- Extra subdirectory named after the zip file.

These zip files are taken from https://github.com/Lekensteyn/lua-unicode
(the "prepared" source zips can be found here as well.)

Bug: 15118
Change-Id: I219f046d6e0fd5093287b5d6503a48ba7d1fc6a4
Reviewed-on: https://code.wireshark.org/review/31165
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
cmake/modules/FindLUA.cmake
docbook/wsluarm.asciidoc
tools/win-setup.ps1