On Thu Aug 3 17:58:39 2023 +0000, Hans Leidekker wrote:
I tried a username with non-ascii characters on Windows 10 and Wine and whoami behaves the same. Non-ascii characters are rendered on the console. When redirecting output non-ascii characters are replaced with '?'.
Which `whoami` was tested? If it was the current in-tree one, then it works because it already uses `ConsoleWriteW()`.