From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932481AbeAXBEZ (ORCPT ); Tue, 23 Jan 2018 20:04:25 -0500 Received: from mail-it0-f52.google.com ([209.85.214.52]:46946 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932083AbeAXBEY (ORCPT ); Tue, 23 Jan 2018 20:04:24 -0500 X-Google-Smtp-Source: AH8x226rvWARVu5vcCeRRY6Gb7Jm4M8FunnbzhGkflBPZ21XZVCy57wWOphXBQ2KCtHy2QQKN7/mctiVfu+rc0233MQ= MIME-Version: 1.0 In-Reply-To: <20180124004603.GH5317@bhelgaas-glaptop.roam.corp.google.com> References: <20180123195644.GA92112@bhelgaas-glaptop.roam.corp.google.com> <20180124004603.GH5317@bhelgaas-glaptop.roam.corp.google.com> From: Linus Torvalds Date: Tue, 23 Jan 2018 17:04:22 -0800 X-Google-Sender-Auth: qN2YsDioX9FI0jVtiVgMTmtNHCE Message-ID: Subject: Re: [GIT PULL] PCI fixes for v4.15 To: Bjorn Helgaas , Peter Grayson , Catalin Marinas Cc: linux-pci@vger.kernel.org, Linux Kernel Mailing List , Lorenzo Pieralisi , =?UTF-8?Q?Christian_K=C3=B6nig?= , Aaro Koskinen , Andy Shevchenko , Boris Ostrovsky , Juergen Gross , Alex Deucher , David Airlie Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id w0O14UEH029910 On Tue, Jan 23, 2018 at 4:46 PM, Bjorn Helgaas wrote: > On Tue, Jan 23, 2018 at 12:49:22PM -0800, Linus Torvalds wrote: >> >> I suspect you're editing your mailbox, or you're using some broken >> mailer setup, or something (using some broken "export" function?), >> because you're corrupting Christian's name all the time: > > I'm not editing my mailbox, but I am using stgit. The "From:" header > uses encoded-word syntax for Christian's name, and I think stgit is > not decoding that when applying the patch. Ahh. Ok, that would explain it. > When I save the patch email message from mutt (or gmail, for that > matter), I see: > > From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" ... Yes. That's the standard locale encoding format for header values (mainly subject and author), since the Content-Type: text/plain; charset=utf-8 only applies to the *body* of the email. So then the email handling tools have to handle that correctly, and as you noticed, "git am" does so: > Applying that patch with "git am" results in the correct > > Author: Christian König Applying the identical patch with "stg import -M" results in > > Author: =?UTF-8?q?Christian=20K=C3=B6nig?= I'm adding Peter Grayson and Catalin Marinas to the participants, since they seem to be the main stgit developers. Presumably there is either a flag for this (which should presumably be the default). Or if not, maybe stgit can just be fixed? [ I go off looking at the stgit sources. ] Oddly, stgit seems to even have a *testcase* for this: - t/t1800-import/email-qp: From: Inge =?utf-8?q?Str=C3=B6m?= and that test-case harkens back to 2006. I wonder why it doesn't seem to work for you and Christian. Bjorn, maybe you can send Catalin an example mbox? Linus