d4ef45f
--- patch-2.5.4/pch.c.stripcr	1999-08-30 07:20:08.000000000 +0100
d4ef45f
+++ patch-2.5.4/pch.c	2005-08-11 12:59:35.000000000 +0100
d4ef45f
@@ -355,10 +355,16 @@
d4ef45f
 	if (!stars_last_line && strnEQ(s, "*** ", 4))
d4ef45f
 	    name[OLD] = fetchname (s+4, strippath, &p_timestamp[OLD]);
d4ef45f
 	else if (strnEQ(s, "+++ ", 4))
d4ef45f
+          {
d4ef45f
 	    /* Swap with NEW below.  */
d4ef45f
 	    name[OLD] = fetchname (s+4, strippath, &p_timestamp[OLD]);
d4ef45f
+            p_strip_trailing_cr = strip_trailing_cr;
d4ef45f
+          }
d4ef45f
 	else if (strnEQ(s, "Index:", 6))
d4ef45f
+          {
d4ef45f
 	    name[INDEX] = fetchname (s+6, strippath, (time_t *) 0);
d4ef45f
+            p_strip_trailing_cr = strip_trailing_cr;
d4ef45f
+          }
d4ef45f
 	else if (strnEQ(s, "Prereq:", 7)) {
d4ef45f
 	    for (t = s + 7;  ISSPACE ((unsigned char) *t);  t++)
d4ef45f
 	      continue;
d4ef45f
@@ -386,6 +392,7 @@
d4ef45f
 		    p_timestamp[NEW] = timestamp;
d4ef45f
 		    p_rfc934_nesting = (t - s) >> 1;
d4ef45f
 		  }
d4ef45f
+                p_strip_trailing_cr = strip_trailing_cr;
d4ef45f
 	      }
d4ef45f
 	  }
d4ef45f
 	if ((diff_type == NO_DIFF || diff_type == ED_DIFF) &&
d4ef45f
@@ -419,7 +426,6 @@
d4ef45f
 	    if (s[0] == '+' && s[1] == '0' && !ISDIGIT (s[2]))
d4ef45f
 	      p_says_nonexistent[NEW] = 1 + ! p_timestamp[NEW];
d4ef45f
 	    p_indent = indent;
d4ef45f
-	    p_strip_trailing_cr = strip_trailing_cr;
d4ef45f
 	    p_start = this_line;
d4ef45f
 	    p_sline = p_input_line;
d4ef45f
 	    retval = UNI_DIFF;