Subject: FW: pine 4.33 whitespace breakage

From: [email-masked]
Date: Mon, 30 Apr 2001 11:30:35 -0500

Resending, as I wasn't subscribed to pine-info the first time round.

-----Original Message-----
From: Domsch, Matt 
Sent: Monday, April 30, 2001 11:05 AM
To: [email-masked]
Cc: [email-masked]; [email-masked]
Subject: pine 4.33 whitespace breakage

This is a bug report against Pine 4.33 as found in Red Hat Linux 7.1,
pine-4.33-8, running on an i386-based platform.

I've run into strange case where pine, when sending mail, mangles
whitespace, in this case, inside of a patch.  Attached are
several files.  patch-before-pine.gz contains the patch as extracted by
diff -bu (compressed for this message to ensure it says the same, but was
included in the message body as text when sent).  patch-after-pine.gz
contains the patch as exported from pine after being sent/received.

In looking at a diff of the hex dump, you'll see that
\n[space]\n[space*7]\n got merged into \n\n\n.  This causes the
patch, when received, to fail to apply.

-0000150   s   [   3   ]   )   )   ;  \n      \n
-0000160      \n   +                           s   c   s   i   _   s   e
+0000150   s   [   3   ]   )   )   ;  \n  \n  \n   +
+0000160       s   c   s   i   _   s   e   t   _   p   c   i   _   d   e

I'd appreciate someone looking into this matter.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer
Dell Linux Systems Group
Linux OS Development
www.dell.com/linux

--- patch-before-pine.hex	Mon Apr 30 10:47:31 2001
+++ patch-after-pine.hex	Mon Apr 30 10:47:39 2001
@@ -19,18 +19,17 @@
 0000120   i   D   e   v   -   >   b   a   s   e   a   d   d   r   e   s
 0000130   s   [   ]   =       %   l   x   \   n   "   ,       P   c   i
 0000140   D   e   v   -   >   b   a   s   e   _   a   d   d   r   e   s
-0000150   s   [   3   ]   )   )   ;  \n      \n                        
-0000160      \n   +                           s   c   s   i   _   s   e
-0000170   t   _   p   c   i   _   d   e   v   i   c   e   (   H   o   s
-0000180   t   A   d   a   p   t   e   r   ,       P   c   i   D   e   v
-0000190   )   ;  \n                               H   o   s   t   A   d
-00001a0   a   p   t   e   r   -   >   i   r   q       =       P   c   i
-00001b0   D   e   v   -   >   i   r   q   ;           /   /       c   o
-00001c0   p   y       f   o   r       S   c   s   i       l   a   y   e
-00001d0   r   s  \n                              \n                    
-00001e0           /   /       H   P       T   a   c   h   l   i   t   e
-00001f0       u   s   e   s       t   w   o       (   2   5   5   -   b
-0000200   y   t   e   )       r   a   n   g   e   s       o   f       P
-0000210   o   r   t       I   /   O       (   l   o   w   e   r       &
-0000220       u   p   p   e   r   )   ,  \n                            
-0000229
+0000150   s   [   3   ]   )   )   ;  \n  \n  \n   +                    
+0000160       s   c   s   i   _   s   e   t   _   p   c   i   _   d   e
+0000170   v   i   c   e   (   H   o   s   t   A   d   a   p   t   e   r
+0000180   ,       P   c   i   D   e   v   )   ;  \n                    
+0000190           H   o   s   t   A   d   a   p   t   e   r   -   >   i
+00001a0   r   q       =       P   c   i   D   e   v   -   >   i   r   q
+00001b0   ;           /   /       c   o   p   y       f   o   r       S
+00001c0   c   s   i       l   a   y   e   r   s  \n  \n                
+00001d0               /   /       H   P       T   a   c   h   l   i   t
+00001e0   e       u   s   e   s       t   w   o       (   2   5   5   -
+00001f0   b   y   t   e   )       r   a   n   g   e   s       o   f    
+0000200   P   o   r   t       I   /   O       (   l   o   w   e   r    
+0000210   &       u   p   p   e   r   )   ,  \n  \n                    
+000021b