Bring back arg_list_utf_16to8(), but have it just do UTF-16-to-UTF-8 mapping.
authorGuy Harris <guy@alum.mit.edu>
Mon, 8 Oct 2018 02:04:50 +0000 (19:04 -0700)
committerGuy Harris <guy@alum.mit.edu>
Mon, 8 Oct 2018 03:05:45 +0000 (03:05 +0000)
commitbce13644e9d528a153f87019738a1582c9cae606
tree4b662ab2fd3274da65c1fdc09a8995a436af798b
parent9388bd0436550e456fb0d9957a8328f1124c4800
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@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
13 files changed:
capinfos.c
captype.c
dumpcap.c
editcap.c
mergecap.c
randpkt.c
rawshark.c
text2pcap.c
tfshark.c
tshark.c
ui/qt/main.cpp
wsutil/unicode-utils.c
wsutil/unicode-utils.h