https://bugs.winehq.org/show_bug.cgi?id=53386
Bug ID: 53386 Summary: cmd.exe: FOR /F USEBACKQ doesn't handle UTF-16 output of commands. Product: Wine Version: 7.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: ahiler@codeweavers.com Distribution: ---
Used by installation script of Septerra Core on Steam.
Easy reproducer:
FOR /F USEBACKQ %F IN (`wmic os get osarchitecture`) DO ECHO %F
Wmic output is UTF-16 and starts with BOM. On Windows the above snipped echoes whatever wmic spits out. Currently on Wine it gets stuck in infinite loop.
The infinite loop is addressed by https://gitlab.winehq.org/wine/wine/-/merge_requests/352 but UTF-16 is still not handled at all.