From 5cbae75ed03decfd5c8fad66e3d8878636d2562f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 9 Dec 2017 16:54:04 +0100 Subject: [PATCH] Update --- m-string.h | 1 + 1 file changed, 1 insertion(+) diff --git a/m-string.h b/m-string.h index e2f31489..8954285e 100644 --- a/m-string.h +++ b/m-string.h @@ -851,6 +851,7 @@ static inline void stringi_utf8_decode(char car, stringi_utf8_state_e *state, *state = STRINGI_UTF8_STATE_TAB[*state * 8 + type]; } +/* NOTE: Non-canonical representation are not rejected */ static inline bool stringi_utf8_valid_str_p(const char str[]) { stringi_utf8_state_e s = STRINGI_UTF8_STARTING;