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

Re: gitweb: charset problem

From
Junio C Hamano <junkio@cox.net>
Date
Oct 24, 2005, 22:39 UTC
Message-ID
<7vwtk2k08z.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0510241743280.25300@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 7 quoted lines
> On Mon, 24 Oct 2005, Horst von Brand wrote:
>
>> I believe the Emperor Penguin decreed messages have to be
>> ASCII, or else UTF-8. Please don't add to the mess by using
>> non-portable encodings!
>
> Should we possibly reject non-UTF-8 input to commits?
Please, don't.
> IIRC, we actually define that to be UTF-8, unlike most of the
> other stuff, for which we don't actually insist on a policy.

No, we do not define nor insist on a particluar policy as far as I know. We suggest the use of UTF-8 merely from common sense to help interoperability, and make UTF-8 slightly easier to use than other encodings by giving specific support for it in some tools, namely -u flag in git-mailinfo.

It is perfectly reasonable if a company internal project that works in Russia to standardize on KOI, or in Japan on EUC-JP. We simply allow it without encouraging nor discouraging it. If gitweb can take a configuration mechanism to override the built-in UTF-8 header, that is perfectly a valid thing to do to help such an environment.

However, we suggest UTF-8 if the project does not have a compelling reason to do otherwise [*1*]. If you want to be prepared for the day your project might have wider participants than you originally envisioned, that is the most sensible thing to do. This is especially true because the commit logs cannot be re-encoded after the fact.

[Footnote]

*1* For example, I've never made GNU emacs to work well with Japanese in UTF-8 , so if people in my company internal project wanted to use Japanese in commit logs, I would probably standardize on EUC-JP for such a project. Luckily so far I have not been forced to make that decision.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 3 of 6 in “Re: gitweb: charset problem”
  1. Horst von BrandOct 24, 2005
  2. Daniel BarkalowOct 24, 2005
  3. Junio C HamanoOct 24, 2005
  4. Daniel BarkalowOct 25, 2005
  5. Junio C HamanoOct 25, 2005
  6. Junio C HamanoOct 25, 2005

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.