Wireshark-commits: [Wireshark-commits] master-2.4 8cfd882: Make sure we avoid the local code page f

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 08 Oct 2018 18:32:55 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8cfd88254954d47e67eecfc6f889db3091d1358f
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.4
Repository: wireshark

Commits:

8cfd882 by Guy Harris (guy@xxxxxxxxxxxx):

    Make sure we avoid the local code page for command-line arguments.
    
    Do in WinMain() as we do in the Qt main() - fetch the command line with
    GetCommandLineW(), convert it to an argument count and array of UTF-16
    strings with CommandLineToArgvW(), and then convert them to an array of
    UTF-8 strings with arg_list_utf_16to8().
    
    Change-Id: I04bd4182b1ff62573eb132531f4c7f2360f376cc
    Reviewed-on: https://code.wireshark.org/review/30067
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 24c315646b84873a6de32c69f17d3d9e9e05645f)
    Reviewed-on: https://code.wireshark.org/review/30080
    

Actions performed:

    from  2df3043   No need to check for dladdr in autotools, either, as we're no longer using it.
     add  8cfd882   Make sure we avoid the local code page for command-line arguments.


Summary of changes:
 ui/gtk/main.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)