Wireshark-commits: [Wireshark-commits] master 5953756: Add routines to load Lua programs that assum
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5953756305388724545f0df46d286be2f02c048a
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
5953756 by Guy Harris (guy@xxxxxxxxxxxx):
Add routines to load Lua programs that assume the path is UTF-8 on Windows.
Add ws_dofile() and ws_loadfile(), which are like the substitute
dofile() and loadfile() we provide, but that, on Windows, take a UTF-8
path rather than a path in the local code page.
Use that to load console.lua.
This means we can load console.lua on Windows even if the full path to
it includes non-ASCII characters.
Bug: 15118
Change-Id: Iaa00639563fe53a34e1e24e42022f3886a38e7c5
Reviewed-on: https://code.wireshark.org/review/31075
Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 0ba97f9 pfcp: correction of name QFII
add 5953756 Add routines to load Lua programs that assume the path is UTF-8 on Windows.
Summary of changes:
epan/wslua/template-init.lua | 6 +-
epan/wslua/wslua_util.c | 162 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 166 insertions(+), 2 deletions(-)