From: Pavel Charvat Date: Tue, 4 Apr 2006 09:45:22 +0000 (+0200) Subject: UTF-8 bug hunted in substring search X-Git-Tag: holmes-import~650^2~18 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=38cc9359c327c57df93cd649d6e4c538e89619e9;p=libucw.git UTF-8 bug hunted in substring search --- diff --git a/lib/kmp.h b/lib/kmp.h index 0a83dd7b..7d392bf9 100644 --- a/lib/kmp.h +++ b/lib/kmp.h @@ -33,7 +33,7 @@ /* Pre-defined input functions */ -#define KMP_GET_RAW(pos, c, flags) c=*pos++ +#define KMP_GET_RAW(pos, c, flags) do { uns cc; pos = utf8_get(pos, &cc); c=cc; } while(0) #define KMP_GET_ASCII(pos, c, flags) do { \ c = *pos++; \