From: Jeff King Date: Thu, 13 Nov 2008 04:34:55 GMT Subject: Re: Possible bug: "git log" ignores "--encoding=UTF-8" option if --pretty=format:%e%n%s%n is used Message-ID: <20081113043454.GA5048@coredump.intra.peff.net> In-Reply-To: <7vvdusjtg8.fsf@gitster.siamese.dyndns.org> On Wed, Nov 12, 2008 at 05:38:47PM -0800, Junio C Hamano wrote: > > BTW for some reason --pretty=raw is affected by encoding option on the > > command line. > > Unfortunately, that is what you get for reading from a Porcelain output, > which is meant for, and are subject to improvement for, human consumption. > > If you want bit-for-bit information, you can always ask "git cat-file". What about "git rev-list --pretty=raw"? Is that also porcelain? I would be curious to hear your take on our failure to respect --encoding for --pretty=format. Is it a bug to be fixed, or a historical behavior to be maintained? -Peff