<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/utf8.c, branch v1.5.4.4</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.5.4.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.5.4.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2008-01-07T04:53:46Z</updated>
<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.stealer.net/cgit.cgi/user/sven/git.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.stealer.net/cgit.cgi/user/sven/git.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>Remove unreachable statements</title>
<updated>2007-11-16T05:23:47Z</updated>
<author>
<name>Guido Ostkamp</name>
<email>git@ostkamp.fastmail.fm</email>
</author>
<published>2007-11-15T22:19:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a777e9ca54b5801266486a16dc0d25c82b38014d'/>
<id>urn:sha1:a777e9ca54b5801266486a16dc0d25c82b38014d</id>
<content type='text'>
Solaris Workshop Compiler found a few unreachable statements.

Signed-off-by: Guido Ostkamp &lt;git@ostkamp.fastmail.fm&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Style: place opening brace of a function definition at column 1</title>
<updated>2007-11-08T23:35:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-11-08T23:35:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f3fa1838024dc0f3741d2f9654af92f6a1bb34bd'/>
<id>urn:sha1:f3fa1838024dc0f3741d2f9654af92f6a1bb34bd</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>wcwidth redeclaration</title>
<updated>2007-05-08T05:02:40Z</updated>
<author>
<name>Amos Waterland</name>
<email>apw@us.ibm.com</email>
</author>
<published>2007-05-08T04:46:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=b51be13c9c83621551824876ee037151a92f0323'/>
<id>urn:sha1:b51be13c9c83621551824876ee037151a92f0323</id>
<content type='text'>
Build fails for git 1.5.1.3 on AIX, with the message:

utf8.c:66: error: conflicting types for 'wcwidth'
/.../lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.3/include/string.h:266: error: previous declaration of 'wcwidth' was here

Fix this by renaming our static variant to our own name.

Signed-off-by: Amos Waterland &lt;apw@us.ibm.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2007-03-04T03:47:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-04T03:47:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=253e772edeb56092e0fad43ec0640658671313c5'/>
<id>urn:sha1:253e772edeb56092e0fad43ec0640658671313c5</id>
<content type='text'>
* maint:
  Unset NO_C99_FORMAT on Cygwin.
  Fix a "pointer type missmatch" warning.
  Fix some "comparison is always true/false" warnings.
  Fix an "implicit function definition" warning.
  Fix a "label defined but unreferenced" warning.
  Document the config variable format.suffix
  git-merge: fail correctly when we cannot fast forward.
  builtin-archive: use RUN_SETUP
  Fix git-gc usage note
</content>
</entry>
<entry>
<title>Fix a "pointer type missmatch" warning.</title>
<updated>2007-03-04T02:55:17Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2007-03-03T18:29:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fd547a972ad1ad714e1dac0a9ffc7637a64dd9b2'/>
<id>urn:sha1:fd547a972ad1ad714e1dac0a9ffc7637a64dd9b2</id>
<content type='text'>
In particular, the second parameter in the call to iconv() will
cause this warning if your library declares iconv() with the
second (input buffer pointer) parameter of type const char **.
This is the old prototype, which is none-the-less used by the
current version of newlib on Cygwin. (It appears in old versions
of glibc too).

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fix some "comparison is always true/false" warnings.</title>
<updated>2007-03-04T02:55:10Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2007-03-03T18:28:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2832114532d92bdd533f84fa520050c5de95c012'/>
<id>urn:sha1:2832114532d92bdd533f84fa520050c5de95c012</id>
<content type='text'>
On Cygwin the wchar_t type is an unsigned short (16-bit) int.
This results in the above warnings from the return statement in
the wcwidth() function (in particular, the expressions involving
constants with values larger than 0xffff). Simply replace the
use of wchar_t with an unsigned int, typedef-ed as ucs_char_t.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>print_wrapped_text: fix output for negative indent</title>
<updated>2007-03-02T23:14:48Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-03-02T14:28:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=62273826fe977d4c1fa445edf9d0e4ab02274fa2'/>
<id>urn:sha1:62273826fe977d4c1fa445edf9d0e4ab02274fa2</id>
<content type='text'>
When providing a negative indent, it means that -indent columns were
already printed. Fix a bug where the function ate the first character
if already the first word did not fit into the first line.

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>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.stealer.net/cgit.cgi/user/sven/git.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>
</feed>
