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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steffen Prohaska <prohaska@...>
Cc: Shawn O. Pearce <spearce@...>, Git Mailing List <git@...>, Johannes Schindelin <Johannes.Schindelin@...>, Finn Arne Gangstad <finnag@...>, Junio C Hamano <gitster@...>, Michele Ballabio <barra_cuda@...>
Date: Wednesday, January 23, 2008 - 6:28 am

On Wed. 23 Jan 2008, Steffen Prohaska wrote:

For example LaTeX files either use inputenc package to set encoding
(e.g. \usepackage[latin2]{inputenc}) or use magic first line to
specify TCX (TeX character translation) file 
(e.g. %& -translate-file=il2-t1).

Emacs encourages to use file variables, either in the form of magic
first line, or file variables at the end of file; I think the same
is true for Vim.


I'd like then for it to be at least as configurable as diff.*.funcname 
is for diff.


We can at least try to and check for UTF-16 magic first two bytes, and 
detect if we have character which is invalid in UTF-8 (for performance 
I guess checking only beginning of file)... 


...and then falling back to fallback encoding, like gitweb does.

-- 
Jakub Narebski
Poland
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC/PATCH] git-gui: Use gitattribute "encoding" for fil..., Jakub Narebski, (Wed Jan 23, 6:28 am)