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