http://bugs.winehq.org/show_bug.cgi?id=8022
------- Additional Comments From us@edmeades.me.uk 2007-17-04 06:28 -------
You really need to investigate msvcrt and cmd.exe problems separately
I am... this patch is NOT the cmd.exe part, this is the msvcrt issue. Unfortunately the bug is for both, which is why a fair part of the confusion between us is arising. I had suspicions they were related, but believe not now
your test uses msvcrt to read the output file
Yes, but its reading it as bytes, not as any kind of formatted data. ie MSVCRT cant do dataconversion without knowing a data type, so using fread has to resolve in unconverted byte input. I can change it to a ReadFile if it will make you happier but I do not believe its an essential. If I was using eg. fgets then I'd agree with you.