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
Junio C Hamano <gitster@pobox.com>
Date
Nov 13, 2008, 05:10 UTC
Message-ID
<7vod0ki531.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20081113043454.GA5048@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> What about "git rev-list --pretty=raw"? Is that also porcelain?

Does it re-encode? I didn't check, but ideally it shouldn't (but I do not care too much either way, to be honest).

> 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?
I think the fix you outlined was quite reasonable.
Previous: Jeff KingNext: Jeff King
Message 7 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.