From: Jeff King <peff@peff.net>
To: Johannes Sixt <j6t@kdbg.org>
Cc: xiaozhu <xiaozhu@gmail.com>, git@vger.kernel.org
Subject: Re: a bug about format-patch of multibyte characters comment
Date: Sun, 13 Feb 2011 05:03:50 -0500 [thread overview]
Message-ID: <20110213100349.GA5483@sigill.intra.peff.net> (raw)
In-Reply-To: <201102131048.58111.j6t@kdbg.org>
On Sun, Feb 13, 2011 at 10:48:58AM +0100, Johannes Sixt wrote:
> On Sonntag, 13. Februar 2011, Jeff King wrote:
> > On Sat, Feb 12, 2011 at 07:13:15PM +0900, xiaozhu wrote:
> > > Subject: [PATCH]
> > > =?UTF-8?q?=E6=97=A5=E6=9C=AC=E8=AA=9E=E3=81=8C=E5=A4=A7=E4=B8=88=E5=A4=AB
> > > =20=E6=94=B9=E8=A1=8C=E3=81=99=E3=82=8B?=
> >
> > Yeah, this is wrong. There should be a whitespace indentation in a
> > multi-line header, or the whole thing should be on one line. The newline
> > in your commit subject is apparently leaking through, and it should be
> > qp-encoded.
>
> Isn't it wrong that format-patch (and --pretty=email) does any quoting in the
> first place? Isn't it the task of the MUA (git-send-email) to do the quoting?
I dunno. I guess it depends on how you view the output of format-patch.
Is it an mbox containing rfc2822-valid messages? Then it ought to be
quoted.
Certainly when opening the output in an editor, it is prettier to have
it unquoted. But what do MUAs expect when opening such an mbox? mutt
seems to handle unencoded utf8 just fine, but I don't know about other
MUAs.
> For example, when I import a format-patch generated patch into a mail message,
> I don't want to see:
>
> From: =?UTF-8?q?Joh=C3=A4nnes=20S=C3=BCxt?= <me@localhost>
>
> but rather:
>
> From: Johännes Süxt <me@localhost>
>
> I know this is a bit late, but this really comes as a surprise. (I've never
> had to pay attention to this behavior in the past...)
I can see how that would be annoying if your workflow is to paste
format-patch output into an email. But it has been that way literally
for years (I just tried v1.5.0, and format-patch produces
rfc2047-encoded headers). So yes, you are a bit late. :)
-Peff
prev parent reply other threads:[~2011-02-13 10:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-12 10:13 a bug about format-patch of multibyte characters comment xiaozhu
2011-02-12 12:30 ` "Martin Krüger"
2011-02-13 7:53 ` Jeff King
2011-02-13 8:31 ` Jeff King
2011-02-13 8:45 ` xiaozhu
2011-02-13 8:52 ` Jeff King
2011-02-13 10:14 ` xiaozhu
2011-02-13 10:22 ` xzer
2011-02-13 10:26 ` Jeff King
2011-02-13 10:50 ` xiaozhu
2011-02-13 10:23 ` Jeff King
2011-02-13 9:48 ` Johannes Sixt
2011-02-13 10:03 ` Jeff King [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=20110213100349.GA5483@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
--cc=xiaozhu@gmail.com \
/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).