diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-12-28 12:49:33 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-12-29 08:27:08 +0000 |
commit | 604aef7164f50d1f547c7c3d2b0b811be6129e4a (patch) | |
tree | 782e51a68e172caf6e72a7aa768b7de481fe78cf /cmake/modules | |
parent | a5a38daba0cc97a80e4d914362849bd91f7fddfe (diff) |
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>
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindLUA.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindLUA.cmake b/cmake/modules/FindLUA.cmake index 2fc589f417..26d4db653c 100644 --- a/cmake/modules/FindLUA.cmake +++ b/cmake/modules/FindLUA.cmake @@ -15,7 +15,7 @@ # in locations other than lua/ INCLUDE(FindWSWinLibs) -FindWSWinLibs("lua5*" "LUA_HINTS") +FindWSWinLibs("lua-5*" "LUA_HINTS") if(NOT WIN32) find_package(PkgConfig) |