Red Hat Bugzilla – Bug 38399
pine 4.33 whitespace breakage
Last modified: 2007-04-18 12:32:55 EDT
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
Created attachment 16847 [details]
Created attachment 16848 [details]
Created attachment 16849 [details]
Created attachment 16850 [details]
Created attachment 16851 [details]
Hopefully will be fixed in PINE 4.34 or whatever is the next release.
Deferring for next official PINE release. (or patch submission)
Workaround: Send patches as file attachments. (Yes, I know this p*ss*s
Linus off) ;o)
Any word back from the pine team on this? I wish they would open PINE CVS
up to the world so that hotfixes can be pulled from it...
No comments at all from either pine list I sent the bug report to.
That's a typical response from closed development projects. I just updated
our pine package with a pinepgp fix, but I don't suspect another update until
a new release of PINE is available.
This looks like a duplicate (and indeed a regression) of Bug #23679, which was
fixed many moons ago in a 7.0 erratum release, IIRC. I haven't yet verified that
the cause is the same gratuitous stripwhitespace() call just before sending the
mail. I suspect it is.
Created attachment 20782 [details]
Same bug, same patch (updated). Please apply.
*** This bug has been marked as a duplicate of 23679 ***