Skip to content

Use a UTF-8 CLI for the wrapping tools on Win32

David Gobbi requested to merge dgobbi/vtk:wrapping-tools-utf8 into master

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:

  1. main(int argc, char* argv[]) was replaced by VTK_PARSE_MAIN(int argc, char* argv[]) to define the wmain() entry point for Windows.

  2. fopen() calls were replaced by vtkParse_FileOpen() to handle UTF-8 to UTF-16 conversion of filenames for Windows.

Closes #18227 (closed)

Edited by David Gobbi

Merge request reports