Wireshark-commits: [Wireshark-commits] master-2.6 d7d9886: Bring back arg_list_utf_16to8(), but hav

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

Commits:

d7d9886 by Guy Harris (guy@xxxxxxxxxxxx):

    Bring back arg_list_utf_16to8(), but have it just do UTF-16-to-UTF-8 mapping.
    
    Call it from wmain() in the command-line tools, passing it the input
    argument count and vector, and call it from main() in Wireshark, after
    getting a UTF-16 argument vector from passing the result of
    GetCommandLineW() to CommandLineToArgvW().
    
    Change-Id: I0e51703c0a6c92f7892d196e700ab437bd702514
    Reviewed-on: https://code.wireshark.org/review/30063
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit bce13644e9d528a153f87019738a1582c9cae606)
    Reviewed-on: https://code.wireshark.org/review/30064
    

Actions performed:

    from  16e7fe4   Use wsetargv.obj, and wmain() rather than main(), on Windows.
     add  d7d9886   Bring back arg_list_utf_16to8(), but have it just do UTF-16-to-UTF-8 mapping.


Summary of changes:
 capinfos.c             | 11 ++++-------
 captype.c              | 11 ++++-------
 dumpcap.c              | 11 ++++-------
 editcap.c              | 11 ++++-------
 mergecap.c             | 11 ++++-------
 randpkt.c              | 11 ++++-------
 rawshark.c             | 11 ++++-------
 text2pcap.c            | 11 ++++-------
 tfshark.c              | 11 ++++-------
 tshark.c               | 11 ++++-------
 wireshark-qt.cpp       | 11 ++++-------
 wsutil/unicode-utils.c | 14 ++++++++++++++
 wsutil/unicode-utils.h | 11 +++++++++++
 13 files changed, 69 insertions(+), 77 deletions(-)