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

Re: [PATCH] gitweb: handle non UTF-8 text

From
Junio C Hamano <junkio@cox.net>
Date
Jun 2, 2007, 22:15 UTC
Message-ID
<7vvee6nguh.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200706012305.41183.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 17 quoted lines
> On Tue, 29 May 2007, Martin Koegler wrote:
> ...
>> But I agree, that there should be the possibilty to choose a the
>> fallback encoding.
>
> I think for the beginning it would be enough to have
>
>   # assume this charset if line contains non-UTF-8 characters
>   our $fallback_encoding = "latin1";
>
> or something like that (perhaps different wording in the comment,
> perhaps different name of the variable) in the gitweb.perl for your
> idea to be accepted.
>
> That, and using to_utf8 (as before e3ad95a8) and not my_decode_utf8
> as subroutine name. If only it would be possible to avoid I think
> quote costly "eval {....}" invocation...

Except that I had an impression that block form of "eval" (as opposed to "parse and evaluate string" kind) was not costly at all.

Please make it so.

I'll read the other parts of your message again -- I might have further comments.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 7 of 9 in “gitweb: handle non UTF-8 text”
  1. gitweb: handle non UTF-8 textMartin Koegler, May 28, 2007
  2. Petr BaudisMay 28, 2007
  3. Jakub NarebskiMay 29, 2007
  4. Martin KoeglerMay 29, 2007
  5. Robin RosenbergMay 30, 2007
  6. Jakub NarebskiJun 1, 2007
  7. Junio C HamanoJun 2, 2007
  8. Jakub NarebskiJun 3, 2007
  9. Alexandre JulliardJun 3, 2007

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.