1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <stdio.h> int wmain(int argc, wchar_t **argv, wchar_t **envp) { for (int i = 0; i < argc; i++) { wprintf(L"Argument %d: ", i); wchar_t *arg = argv[i]; while (*arg) { wprintf(L"%x ", *arg); arg++; } wprintf(L"\n"); } } |
Running the program like this
program.exe Pão
outputs this
...
Argument 1: 50 e3 6f
That's encoded correctly. But running the program through Remedy outputs this
...
Argument 1: 50 c3 a3 6f
Am I missing something or is this really a bug?