Use a UTF-8 CLI for the wrapping tools on Win32
On Win32, this converts the wmain(int argc, wchar_t* argv[])
arguments to UTF-8 and also sets the console I/O to UTF-8.
Most of the changes were done within the vtkWrappingTools
library itself, but two changes were also done to each of the executables:
-
main(int argc, char* argv[])
was replaced byVTK_PARSE_MAIN(int argc, char* argv[])
to define thewmain()
entry point for Windows. -
fopen()
calls were replaced byvtkParse_FileOpen()
to handle UTF-8 to UTF-16 conversion of filenames for Windows.
Closes #18227 (closed)
Edited by David Gobbi