projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f13c007
)
(INC_POSITION): Handle format other than utf8 and utf16.
author
handa
<handa>
Wed, 16 Jun 2004 13:15:37 +0000
(13:15 +0000)
committer
handa
<handa>
Wed, 16 Jun 2004 13:15:37 +0000
(13:15 +0000)
(DEC_POSITION): Likewise.
(compare): Fix case that mt1->format is MTEXT_FORMAT_UTF_8.
src/mtext.c
patch
|
blob
|
history
diff --git
a/src/mtext.c
b/src/mtext.c
index
0bb8f59
..
0601439
100644
(file)
--- 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;