Closed kichikuou closed 1 year ago
Instead of converting to UTF-8 individually in subcommands, reset all pointers in argv to UTF-8 strings at startup.
argv
This also allows characters that are not in the current system codepage to be used on the command line.
Note that SDL2 does this under the hood so in xsystem4 we can assume that argv is all in UTF-8. https://github.com/libsdl-org/SDL/blob/SDL2/src/main/windows/SDL_windows_main.c
Oops, I missed this PR somehow. Thanks!
Instead of converting to UTF-8 individually in subcommands, reset all pointers in
argv
to UTF-8 strings at startup.This also allows characters that are not in the current system codepage to be used on the command line.
Note that SDL2 does this under the hood so in xsystem4 we can assume that
argv
is all in UTF-8. https://github.com/libsdl-org/SDL/blob/SDL2/src/main/windows/SDL_windows_main.c