From: Junio C Hamano <junkio@cox.net>
To: Ryan Anderson <ryan@michonline.com>
Cc: git@vger.kernel.org
Subject: Re: gitweb on kernel.org and UTF-8
Date: Wed, 23 Nov 2005 22:19:40 -0800 [thread overview]
Message-ID: <7vsltmy3cz.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20051124050104.GC16995@mythryan2.michonline.com> (Ryan Anderson's message of "Thu, 24 Nov 2005 00:01:04 -0500")
Ryan Anderson <ryan@michonline.com> writes:
> On Wed, Nov 23, 2005 at 07:24:38PM -0800, Junio C Hamano wrote:
>>
>> How about doing something like this?
>>
>> [i18n]
>> commitEncoding = utf8
>> blobEncoding = utf8
>>
>> to mean:
>>
>> If you _have_ to make an assumption on an encoding
>> commit and blob objects are in, utf8 is your best bet
>> (but mistakes can happen, and some blobs can be binary).
>
> The rest of the options help clarify this, but can you make these
> options 'assumeCommitEncoding' and 'assumeBlobEncoding' to make it clear
> that these are *assumptions* and not actually controlling what gets
> written?
As I outlined in the "editorEncoding" part, if everything works
as planned, your latin-1 editing editor would leave latin-1
message for git-commit to pick up (or command line "-m $msg"
option would be encoded in latin-1), and iconv would munge that
to utf8 to feed commit-tree (because of "commitEncoding" being
utf8). In that sense, commitEncoding is not assumption for the
writers. If everybody, including outside sources we merge from,
makes best effort not to screw up, these settings would
faithfully describe what encoding logs are in.
But writers can screw up, and funnily encoded commit messages
merge from outside source brings in cannot be fixed after the
fact, so "assume" part must be implied anyway for readers.
prev parent reply other threads:[~2005-11-24 6:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 0:03 gitweb on kernel.org and UTF-8 Junio C Hamano
2005-11-23 0:59 ` H. Peter Anvin
2005-11-23 3:35 ` Kay Sievers
2005-11-23 3:42 ` H. Peter Anvin
2005-11-24 3:24 ` Junio C Hamano
2005-11-24 5:01 ` Ryan Anderson
2005-11-24 6:19 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vsltmy3cz.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=ryan@michonline.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).