Properly convert command-line arguments to UTF-8 on Windows.
authorGuy Harris <guy@alum.mit.edu>
Wed, 12 Dec 2018 05:19:09 +0000 (21:19 -0800)
committerGuy Harris <guy@alum.mit.edu>
Wed, 12 Dec 2018 09:31:37 +0000 (09:31 +0000)
commitb85f0cbc2f7b412862f9f84faab4815a534dcc2f
tree9220f108a8967dd8f741d5b3ee1aa10204fb83a1
parent541fe1d93795327e8f4b0b3b4bec58fef15f34d6
Properly convert command-line arguments to UTF-8 on Windows.

Do the same thing we do for most other command-line programs - on
Windows, have wmain() rather than main(), convert the UTF-16 argument
lists to UTF-8, and pass them on to real_main(), otherwise just have
main() call real_main().  That way, they never pass through the local
code page on Windows.

Change-Id: Ib74176dd0586c012eabaa3376c1d7dcba8838978
Reviewed-on: https://code.wireshark.org/review/31014
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
reordercap.c