<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/utf8.h, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-02-05T00:30:43Z</updated>
<entry>
<title>utf8: add utf8_strwidth()</title>
<updated>2009-02-05T00:30:43Z</updated>
<author>
<name>Geoffrey Thomas</name>
<email>geofft@mit.edu</email>
</author>
<published>2009-01-30T09:41:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8a9391e9440028c03345afa9f21459237a529592'/>
<id>urn:sha1:8a9391e9440028c03345afa9f21459237a529592</id>
<content type='text'>
I'm about to use this pattern more than once, so make it a common function.

Signed-off-by: Geoffrey Thomas &lt;geofft@mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>utf8_width(): allow non NUL-terminated input</title>
<updated>2008-01-07T04:53:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-01-02T09:49:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=44b25b872f926ba92bae9ddf2495e7f59d0c96e2'/>
<id>urn:sha1:44b25b872f926ba92bae9ddf2495e7f59d0c96e2</id>
<content type='text'>
The original interface assumed that the input string is
always terminated with a NUL, but that wasn't too useful.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>utf8: pick_one_utf8_char()</title>
<updated>2008-01-07T04:27:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-01-07T03:02:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=396ccf1fcb91f31d5060555cbffc35bf24172a35'/>
<id>urn:sha1:396ccf1fcb91f31d5060555cbffc35bf24172a35</id>
<content type='text'>
utf8_width() function was doing two different things.  To pick a
valid character from UTF-8 stream, and compute the display width of
that character.  This splits the former to a separate function
pick_one_utf8_char().

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Actually make print_wrapped_text() useful</title>
<updated>2007-02-28T01:29:02Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-02-27T15:20:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=094e03b039aeaad759227540491c235b3a83b83a'/>
<id>urn:sha1:094e03b039aeaad759227540491c235b3a83b83a</id>
<content type='text'>
Now, it returns the current column, does not add a newline, and you can
pass a negative indent, to indicate that the indent was already printed.

With this, you can actually continue in the middle of a paragraph, not
having to print everything into a buffer first.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>commit-tree: cope with different ways "utf-8" can be spelled.</title>
<updated>2006-12-30T23:58:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-12-30T20:20:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=677cfed56ac530878b746ee4cca3ada8af384a81'/>
<id>urn:sha1:677cfed56ac530878b746ee4cca3ada8af384a81</id>
<content type='text'>
People can spell config.commitencoding differently from what we
internally have ("utf-8") to mean UTF-8.  Try to accept them and
treat them equally.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Move encoding conversion routine out of mailinfo to utf8.c</title>
<updated>2006-12-26T08:22:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-12-24T07:36:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b45974a655e0e41441e5db64c091000171435096'/>
<id>urn:sha1:b45974a655e0e41441e5db64c091000171435096</id>
<content type='text'>
This moves the body of convert_to_utf8() routine used in mailinfo
to the utf8.c i18n library.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>commit-tree: encourage UTF-8 commit messages.</title>
<updated>2006-12-24T08:32:49Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2006-12-22T21:06:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e83266525aad5c6210b9a21be9b1c6996d5544f'/>
<id>urn:sha1:9e83266525aad5c6210b9a21be9b1c6996d5544f</id>
<content type='text'>
Introduce is_utf() to check if a text looks like it is encoded
in UTF-8, utf8_width() to count display width, and implements
print_wrapped_text() using them.

git-commit-tree warns if the commit message does not minimally
conform to the UTF-8 encoding when i18n.commitencoding is either
unset, or set to "utf-8".

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
