git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Possible bug: "git log" ignores "--encoding=UTF-8" option if --pretty=format:%e%n%s%n is used

From
Jeff King <peff@peff.net>
Date
Nov 13, 2008, 04:34 UTC
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:
Show 7 quoted lines
> > 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
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “Possible bug: "git log" ignores "--encoding=UTF-8" option if --pretty=format:%e%n%s%n is used”
  1. Constantine PlotnikovNov 11, 2008
  2. Jeff KingNov 12, 2008
  3. Jeff KingNov 12, 2008
  4. Constantine PlotnikovNov 12, 2008
  5. Junio C HamanoNov 13, 2008
  6. Jeff KingNov 13, 2008
  7. Junio C HamanoNov 13, 2008
  8. Jeff KingNov 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.