Wireshark-commits: [Wireshark-commits] master-2.6 729a0b7: Add routines to load Lua programs that a

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 17 Dec 2018 21:58:24 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=729a0b787d660e26f7d5b35fd4f6712a3695fa11
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

729a0b7 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>
    (cherry picked from commit 5953756305388724545f0df46d286be2f02c048a)
    Reviewed-on: https://code.wireshark.org/review/31076
    

Actions performed:

    from  45f5481   GSM A: detect buffer overrun when decoding MS Classmark 3 IE
     add  729a0b7   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(-)