From: Don Zickus <dzickus@redhat.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-mailinfo fixes for patch munging
Date: Fri, 30 Mar 2007 17:32:10 -0400 [thread overview]
Message-ID: <20070330213210.GL11029@redhat.com> (raw)
In-Reply-To: <7vmz1uzaxd.fsf@assigned-by-dhcp.cox.net>
On Fri, Mar 30, 2007 at 02:19:42PM -0700, Junio C Hamano wrote:
> Don Zickus <dzickus@redhat.com> writes:
>
> > Don't translate the patch to UTF-8, instead preserve the data as is. Also
> > allow overwriting the primary mail headers (addresses Linus's concern).
> >
> > I also revert a test case that was included in the original patch. Now it
> > makes sense why it was the way it was. :)
> >
> > Cheers,
> > Don
>
> Thanks. Sign-off would have been nice.
Doh. Sorry. Should I repost with fix below?
> This check_header is called from each multi-part boundary with
> overwrite=1, so if you have two parts and you have From: or
> Subject: in the multi-part header (not in-body), wouldn't they
> overwrite what we already have? That is not desired, I would
> think.
Hmm. I guess I never thought about that case. You are right, that check
can be changed to a zero (because the rfc2822 are checked elsewhere).
> > @@ -614,6 +614,7 @@ static int find_boundary(void)
> >
> > static int handle_boundary(void)
> > {
> > + char newline[]="\n";
> > again:
> > if (!memcmp(line+content_top->boundary_len, "--", 2)) {
> > /* we hit an end boundary */
> > @@ -628,7 +629,7 @@ again:
> > "can't recover\n");
> > exit(1);
> > }
> > - handle_filter("\n");
> > + handle_filter(newline);
> >
> > /* skip to the next boundary */
> > if (!find_boundary())
>
> These two hunks certainly do not hurt, but why? Is this about
> the constness of the first parameter to handle_filter() and its
> call chain?
Yeah, I SEGFAULT'd when trying to convert_to_utf8() a fixed string. :-)
Cheers,
Don
prev parent reply other threads:[~2007-03-30 21:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 16:18 [PATCH] git-mailinfo fixes for patch munging Don Zickus
2007-03-30 21:19 ` Junio C Hamano
2007-03-30 21:32 ` Don Zickus [this message]
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=20070330213210.GL11029@redhat.com \
--to=dzickus@redhat.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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;
as well as URLs for NNTP newsgroup(s).