1 --- mskanji.c.orig Tue May 20 15:21:44 2003
2 +++ mskanji.c Wed Jun 18 12:02:06 2003
9 rune_t _MSKanji_sgetrune(const char *, size_t, char const **);
10 int _MSKanji_sputrune(rune_t, char *, size_t, char **);
21 return (_INVALID_RUNE);
24 rune = *string++ & 0xff;
25 if ((rune > 0x80 && rune < 0xa0) ||
26 (rune >= 0xe0 && rune < 0xfd)) {
28 - rune = _INVALID_RUNE;
32 + return (_INVALID_RUNE);
34 rune = (rune << 8) | (*string++ & 0xff);
36 + if (!isrune(rune)) {
39 + return (_INVALID_RUNE);