From: handa Date: Wed, 16 Jun 2004 13:15:37 +0000 (+0000) Subject: (INC_POSITION): Handle format other than utf8 and utf16. X-Git-Tag: withdl~71 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85895d0f57258db8d51425d53299dc0d5fb7094e;p=m17n%2Fm17n-lib.git (INC_POSITION): Handle format other than utf8 and utf16. (DEC_POSITION): Likewise. (compare): Fix case that mt1->format is MTEXT_FORMAT_UTF_8. --- diff --git a/src/mtext.c b/src/mtext.c index 0bb8f59..0601439 100644 --- a/src/mtext.c +++ b/src/mtext.c @@ -163,7 +163,7 @@ static int compare (MText *mt1, int from1, int to1, MText *mt2, int from2, int to2) { if (mt1->format == mt2->format - && (mt1->format < MTEXT_FORMAT_UTF_8)) + && (mt1->format <= MTEXT_FORMAT_UTF_8)) { unsigned char *p1, *pend1, *p2, *pend2;