Re: [PATCH 1/2] libgit.a: add some UTF-8 handling functions
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 22, 2006, 22:34 UTC
- Message-ID
- <Pine.LNX.4.63.0612222331581.19693@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20061222221913.GA3071@cepheus>
Dear Mr Zeisberg,
On Fri, 22 Dec 2006, Uwe Kleine-König wrote:
Show 6 quoted lines
> Johannes Schindelin wrote: > > Note that we do not go the full nine yards: we could also check that > > the character is encoded with the minimum amount of bytes, as pointed > > out by Uwe Kleine-Koenig. > While we're talking about UTF-8 in commit-logs: I'd prefer to have my > name properly written with o-umlaut.
I did this because I have no easy way to input UTF-8, and because I am lazy, and because I did not know how many times this patch has to be revised.
Apart from that, it seems that the checking of UTF-8 is actually quite simple, and we could even copy it from http://www.cl.cam.ac.uk/~mgk25/ucs/utf8_check.c, where the check you proposed is included.
But I had enough of UTF-8 for a day.
Ciao, Dscho