comparision was ok but only for normal ansi characters - the problem was with national charsets - my fix is as follows
diff -Nru rblob.c.old rblob.c --- rblob.c.old 2003-11-26 17:01:31.000000000 +0100 +++ rblob.c 2007-10-29 09:08:35.000000000 +0100 @@ -332,7 +332,7 @@ p = buf; if (ignore_case) fn_rupper(p); } - if (s[i] == p[i]) + if ((unsigned char)s[i] == (unsigned char)p[i]) i++; else {
Log in to post a comment.
comparision was ok but only for normal ansi characters - the problem was with national charsets - my fix is as follows
diff -Nru rblob.c.old rblob.c
--- rblob.c.old 2003-11-26 17:01:31.000000000 +0100
+++ rblob.c 2007-10-29 09:08:35.000000000 +0100
@@ -332,7 +332,7 @@
p = buf;
if (ignore_case) fn_rupper(p);
}
- if (s[i] == p[i])
+ if ((unsigned char)s[i] == (unsigned char)p[i])
i++;
else
{