From f106f8b8adb5e7867babbc8cfd3da03cc0ae5edb Mon Sep 17 00:00:00 2001 From: "Tarn W. Burton" Date: Fri, 10 May 2024 06:37:52 -0400 Subject: [PATCH] Increase size of encoding buffer --- src/c/file.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c/file.d b/src/c/file.d index 995775b1d..6d0d4785b 100644 --- a/src/c/file.d +++ b/src/c/file.d @@ -57,10 +57,10 @@ #endif /* Maximum number of bytes required to encode a character. - * This currently corresponds to (4 + 2) for the ISO-2022-JP-* encodings - * with 4 being the charset prefix, 2 for the character. + * This currently corresponds to (4 + 4) for the UCS-4 encoding + * with 4 being the byte-order mark, 4 for the character. */ -#define ENCODING_BUFFER_MAX_SIZE 6 +#define ENCODING_BUFFER_MAX_SIZE 8 /* Size of the encoding buffer for vectors */ #define VECTOR_ENCODING_BUFFER_SIZE 2048