Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!princeton!rutgers!iuvax!silver!creps From: creps@silver.UUCP Newsgroups: comp.binaries.ibm.pc.d Subject: PC Patch: how to get it to work Message-ID: <1749@silver.bacs.indiana.edu> Date: 12 May 88 20:35:22 GMT Sender: creps@silver.bacs.indiana.edu Reply-To: creps@silver (Steve Creps) Organization: Indiana Univ Comp Sci Dept Lines: 46 Posted: Thu May 12 16:35:22 1988 Earlier I wrote that the Unix patch program I ported to MS-DOS did not work properly when applied to files in MS-DOS format, and so forth. I also theorized a temporary fix for the problem, that is, to convert the target file back to Unix format. With the crlf program I sent to Rahul today to be posted soon this method should work. I tried this method, and was able to succesfully patch a file that patch bombed on when it was in MS-DOS format. First run the file to be patched through crlf: crlf -r file.ext > ufile.ext The -r option tells crlf we are converting from MS-DOS format to Unix format. Output is redirected to ufile.ext, which will be the same file, but in Unix format. If you examine the sizes of these two files, the size of file.ext should be roughly equal to the size of ufile.ext + the number of lines in the file. You may now apply your patches to ufile.ext. You'll probably have to delete file.ext (or move it somewhere else), then rename ufile.ext to file.ext. The patch can be applied as follows: patch