public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Larsen <larsen007@web.de>
To: development@lists.ipfire.org
Subject: Problem with whitespace in patches
Date: Thu, 04 Jun 2015 22:52:50 +0200	[thread overview]
Message-ID: <op.xzp4acbkcahio0@honk.fritz.box> (raw)
In-Reply-To: <1433434987.25208.19.camel@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1830 bytes --]

(I changed the subject as this has nothing to do with pppsetup.cgi)


On Thu, 04 Jun 2015 18:23:07 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote:

> If I remove the first space from every line of the diff that does not
> start with a + or - character. Any idea how this comes?


TL;DR: Opera 12.17 f*cks up the patch when sent as plain text.


1) I took the file that TortoiseGit saved, saved the text I sent to the list, the text
I received from the list, and the file that Michael sent back.
2) Edited all of them to start with these lines:
--- a/html/cgi-bin/vpnmain.cgi
+++ b/html/cgi-bin/vpnmain.cgi
3) Converted the saved mails to UNIX format with LF instead of CRLF (Windows here)
4) Calculated md5sums: They were all the same except for the one sent to the list

Examining this further, I noticed a bug in my mail program when it displays the mail
in the "sent" folder: When there is more then one line beginning with a space char,
the mailer will put a superfluous space character into the beginning of the last line.
Strange as hell, but this only affects the display here.

Then, I switched views to have the header displayed, too, and saved it as a file.
Compared to the file created by TortoiseGit and now I can solve this riddle:
There we have superfluous whitespace in front of every line without a + or -
(as you noticed before).

I now also compared the mail I received as it is shown in my mail program and the bug
is present there, too. Display is ok (even without that one extra space char - that is
why the md5sum was ok first), but not when I display it with headers (raw view so to
say).

Will send the next patches with Thunderbird and hope that it will be ok then.
Wasted about an hour examining this - hope you guys at least had fun reading ;-)


Lars

  reply	other threads:[~2015-06-04 20:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1433079323.3370.92.camel@ipfire.org>
2015-06-01 20:59 ` [PATCH] Fix hardcoded strings in pppsetup.cgi Larsen
2015-06-01 21:57   ` Aw: " Bernhard Bitsch
2015-06-02  6:58     ` Larsen
2015-06-02  8:51       ` Aw: " Bernhard Bitsch
2015-06-02 10:04         ` Larsen
2015-06-02 19:49           ` Larsen
2015-06-02 20:01             ` Michael Tremer
2015-06-02 21:05               ` Larsen
2015-06-02 21:07                 ` Larsen
2015-06-04 16:23                   ` Michael Tremer
2015-06-04 20:52                     ` Larsen [this message]
2015-06-05 13:25                       ` Problem with whitespace in patches Michael Tremer
2015-06-05 13:29                         ` Larsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.xzp4acbkcahio0@honk.fritz.box \
    --to=larsen007@web.de \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox