delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/05/05/04:05:50

From: drupp AT cs DOT washington DOT edu (Douglas Rupp)
Message-Id: <199605050803.BAA16060@june.cs.washington.edu>
Subject: Patch bug
To: djgpp-workers AT delorie DOT com
Date: Sun, 5 May 1996 01:03:52 -0700 (PDT)
MIME-Version: 1.0

I've noticed that patch doesn't open files in O_BINARY mode.  I
think it should.  When trying to patch Unix style files with Unix style
patches, the first patch works fine but the file gets written out in
DOS text style.  Then if a second Unix style patch is applied, it messes up
because of the mis-match.

A simple "_fmode=O_BINARY" in main() will fix this (appropriately ifdef'ed).
Any objections?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019