Aug. 20, 2026
2:45 p.m.
I didn't imply otherwise. I was just pointing at another potential issue. as the current cmd code sets the Std handles with the potentially redirected streams, it doesn't look right that we reuse the O_TEXT bit that could have been set by cmd's father. I'll dig a bit more into it.
As far as my tests and patch here goes, what cmd.exe currently does passing the CRT std fds flags to lpReserved2 is going to be a no-op anyway. In fact, I so far don't see any reasonable way at all how a process can force the fd flags for child's std fds. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11710#note_149407