Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • 1
    I'm guessing that patch failed on Windows because it was reading the input file in"text" mode which signals end-of-file when it encounters a CONTROL-Z (byte 0x18) in the input file. This is a legacy mode from early DOS days when the directory did not record the length of the file and so the file-length was computed based on the number of 512-byte sectors. If you can tell patch to open the file in binary mode, it shouldn't have this error. Commented Feb 29, 2020 at 21:06