From: Jeff King Date: Sun, 11 Nov 2007 08:51:20 GMT Subject: Re: `git-send-email' doesn't specify `Content-Type' Message-ID: <20071111085120.GD30299@sigill.intra.peff.net> In-Reply-To: <20071111084515.GB18021@bulgaria> On Sun, Nov 11, 2007 at 12:45:15AM -0800, Brian Swetland wrote: > > > What happens if the metadata has utf8 content and the patch itself has > > > some *other* non-ascii encoding (some iso-latin variant perhaps). [...] > > The body has to be in one encoding, so at the time that you know both > > encodings, you have to pick one and convert the data from the discarded > > encoding into the used encoding. > > That seems potentially bad in that the transport (mailed patches) could > be altering the contents of the patch. Or is this process reversed when > the patch is finally applied? My answer was for "how do you stick two things with different encoding in the same mail" (which applies to the name + commit message situation). However, we don't actually _have_ an encoding for the patch data. We just assume that it matches the metadata. -Peff