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
Pedro Melo <melo@simplicidade.org>
Date
Jan 23, 2008, 07:02 UTC
Message-ID
<7E519595-ED6F-454C-9F2A-3011F1E94A50@simplicidade.org>
In-Reply-To
<20080123054709.GA13166@spearce.org>
Hi,
On Jan 23, 2008, at 5:47 AM, Shawn O. Pearce wrote:
Show 9 quoted lines
> I've got the following change in my "pu" right now and am considering
> adding it to git-gui 0.9.2, which would be in git 1.5.4.
>
> I've CC'd a number of people who have emailed me in the past
> about git-gui's diff or blame failing to display a non US-ASCII
> file content correctly and I am interested to hear if this would
> resolve the issue for you.  Its configurable on a per-path basis
> by an "encoding" attribute in .gitattributes (see git-gui's own
> example below).
This solves the problem for me.
The diff display correctly display utf-8 characters.
Best regards,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 6 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.