From 38cc9359c327c57df93cd649d6e4c538e89619e9 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 4 Apr 2006 11:45:22 +0200 Subject: [PATCH] UTF-8 bug hunted in substring search --- lib/kmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; \ -- 2.39.2