From bb381551df03f8da8e4ad73f069fa5085cd676c7 Mon Sep 17 00:00:00 2001 From: Alexander Borisov Date: Wed, 22 Jul 2020 15:21:13 +0300 Subject: [PATCH] Fixed clearing UTF-8 context for two-byte codepoints. --- src/njs_utf8.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/njs_utf8.h b/src/njs_utf8.h index f9518cad..5c870d42 100644 --- a/src/njs_utf8.h +++ b/src/njs_utf8.h @@ -103,6 +103,7 @@ njs_inline void njs_utf8_decode_init(njs_unicode_decode_t *ctx) { ctx->need = 0x00; + ctx->lower = 0x00; } -- 2.47.3