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

Re: [RFC/PATCH] git-gui: Use gitattribute "encoding" for file content display

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 23, 2008, 05:55 UTC
Message-ID
<7v7ii1ozly.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080123054709.GA13166@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 6 quoted lines
> git-gui: Use gitattribute "encoding" for file content display
>
> Most folks using git-gui on internationalized files have complained
> that it doesn't recognize UTF-8 correctly.  In the past we have just
> ignored the problem and showed the file contents as binary/US-ASCII,
> which is wrong no matter how you look at it.
Hmmm.

At least for now in 1.5.4, I'd prefer the way gitk shows UTF-8 (if I recall correctly latin-1 or other legacy encoding, as long as LANG/LC_* is given appropriately, as well) contents without per-path configuration without introducing new attributes.

Previous: Shawn O. PearceNext: Steffen Prohaska
Message 2 of 7 in “git-gui: Use gitattribute "encoding" for file content display”
  1. git-gui: Use gitattribute "encoding" for file content displayShawn O. Pearce, Jan 23, 2008
  2. Junio C HamanoJan 23, 2008
  3. Steffen ProhaskaJan 23, 2008
  4. Jakub NarebskiJan 23, 2008
  5. Shawn O. PearceJan 24, 2008
  6. Pedro MeloJan 23, 2008
  7. Shawn O. PearceJan 24, 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.