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

Re: [PATCH v2] gitweb: apply fallback encoding before highlight

From
Shin Kojima <shin@kojima.org>
Date
May 4, 2016, 08:34 UTC
Message-ID
<20160504083449.GA46041@skmba.local>
In-Reply-To
<xmqq7ffbng8p.fsf@gitster.mtv.corp.google.com>
On Tue, May 03, 2016 at 11:33:42AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Shin Kojima <shin@kojima.org> writes:
> 
> > Some multi-byte character encodings (such as Shift_JIS and GBK) have
> > characters whose final bytes is an ASCII '\' (0x5c), and they
> > will be displayed as funny-characters even if $fallback_encoding is
> > correct.
> 
> Just out of curiosity, do people still use Shift_JIS aka MS-Kanji?
> It feels so last-decade, if not last-century ;-)
Yes, they do. There are still tons of code from 90's lying around.

For migrating our codebase from cp932 (Windows31J/MS-Kanji), I keep failing to persuade my boss saying it has no incentives to do so.

I can say this patch, to consider $fallback_encoding while highlighting, is fairly rational. But I also feel this is too much just for specific outdated character encodings, it is completely useless for the most part of gitweb users in the world.

I would rather prefer to generate feedback from you all to convince our management if this patch is not acceptable.

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “gitweb: apply fallback encoding before highlight”
  1. gitweb: apply fallback encoding before highlightShin Kojima, Apr 20, 2016
  2. Junio C HamanoMay 2, 2016
  3. Jakub NarębskiMay 2, 2016
  4. gitweb: apply fallback encoding before highlightShin Kojima, May 3, 2016
  5. Junio C HamanoMay 3, 2016
  6. Shin KojimaMay 4, 2016
  7. Junio C HamanoMay 4, 2016
  8. Shin KojimaMay 5, 2016

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.