https://bugs.winehq.org/show_bug.cgi?id=56381 Bug ID: 56381 Summary: "type" does not support binary files Product: Wine Version: 9.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs(a)winehq.org Reporter: dan(a)coneharvesters.com Distribution: --- "type" truncates binary files when redirecting the output to stdout. For example: c:\>type c:\windows\winhelp.exe >foo c:\>dir c:\windows\winhelp.exe foo Volume in drive c has no label. Volume Serial Number is 0000-0000 Directory of c:\windows 28/02/2022 5:32 PM 257 winhelp.exe 1 file 257 bytes 0 directories Directory of c: 29/02/2024 1:21 PM 2 foo 1 file 2 bytes 0 directories 19,394,506,752 bytes free The file is truncated after the second byte (byte 3 is NUL). Windows 10 and Windows XP copy the entire file in this case. However, Windows 95 truncates the file. This is causing real-world compatibility issues, as the z88dk compiler suite inexplicably uses "type" to copy binary files like this on Windows. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.