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

Re: [PATCH] gitweb: use decode_utf8 directly

From
MKMartin Koegler <mkoegler@auto.tuwien.ac.at>
Date
Jun 1, 2007, 16:13 UTC
Message-ID
<20070601161316.GA19526@auto.tuwien.ac.at>
Alexandre Julliard wrote:
Show 17 quoted lines
>Junio C Hamano <junkio@cox.net> writes:
> > I would say that the patch is an improvement from the current
> > code so it should hit 'master'; I was a bit busy lately and then
> > am sick, and also we are post -rc1 freeze now and I was being
> > cautious, just in case some nacks from more informed parties
> > arrive late.
> 
> Sorry for the late nack, but it turns out that this patch breaks diff
> output on the Wine server for files that are not utf-8.
> 
> The cause is apparently that decode_utf8() returns undef for invalid
> sequences instead of substituting a replacement char like
> decode("utf8") does.
> 
> That may be considered an Encode bug since we are running a fairly old
> version (1.99, coming with Debian 3.1), but I'd rather not upgrade
> perl on the server. Could the patch be reverted, or done differently?

I hit the same problem: http://marc.info/?l=git&m=117978122420441&w=2

On my system, I use this patch as workaround: http://marc.info/?l=git&m=118038526531694&w=2

mfg Martin Kögler
Message 1 of 1 in “Re: [PATCH] gitweb: use decode_utf8 directly”
  1. Martin KoeglerJun 1, 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.