utf8: pick_one_utf8_char()
commit396ccf1fcb91f31d5060555cbffc35bf24172a35
authorJunio C Hamano <gitster@pobox.com>
Mon, 7 Jan 2008 03:02:22 +0000 (6 19:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jan 2008 04:27:35 +0000 (6 20:27 -0800)
tree8fb86e72df7bb26569f81f6c0a1dd12c41be060c
parent40f162b04b3d5155a7e41d27c9f52383a5fa5a9f
utf8: pick_one_utf8_char()

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 <gitster@pobox.com>
utf8.c
utf8.h