1 --- utf8.c.orig Tue May 20 15:21:44 2003
2 +++ utf8.c Wed Jun 18 12:07:28 2003
13 return (_INVALID_RUNE);
17 * Determine the number of octets that make up this character from
19 * Malformed input; input is not UTF-8.
22 - *result = string + 1;
24 return (_INVALID_RUNE);
30 * Truncated or partial input.
34 return (_INVALID_RUNE);
38 * Decode the octet sequence representing the character in chunks
40 * Malformed input; bad characters in the middle
43 - wch = _INVALID_RUNE;
45 - *result = string + 1;
47 return (_INVALID_RUNE);
50 wch |= *string++ & 0x3f;
52 - if (wch != _INVALID_RUNE && wch < lbound)
55 * Malformed input; redundant encoding.
57 - wch = _INVALID_RUNE;
60 + return (_INVALID_RUNE);