From 9d247dc831569a4db75ec9466d1a988a82dfba29 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Oct 2026 21:09:14 +0200 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- LIBUTF8_ALLOW_LONG_ENCODING.3 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 LIBUTF8_ALLOW_LONG_ENCODING.3 (limited to 'LIBUTF8_ALLOW_LONG_ENCODING.3') diff --git a/LIBUTF8_ALLOW_LONG_ENCODING.3 b/LIBUTF8_ALLOW_LONG_ENCODING.3 new file mode 100644 index 0000000..f17e80c --- /dev/null +++ b/LIBUTF8_ALLOW_LONG_ENCODING.3 @@ -0,0 +1,31 @@ +.TH LIBUTF8_ALLOW_LONG_ENCODING 3 LIBUTF8 +.SH NAME +LIBUTF8_ALLOW_LONG_ENCODING - Accept overlong UTF-8 encodings + +.SH SYNOPSIS +.nf +#include + +#define \fBLIBUTF8_ALLOW_LONG_ENCODING\fP /* implementation omitted */ +.fi + +.SH DESCRIPTION +The +.B LIBUTF8_ALLOW_LONG_ENCODING +macro is a flag for +.BR libutf8_decode (3) +and +.BR libutf8_decode_mem (3). +It causes those functions to accept overlong UTF-8 encodings +of up to six bytes, including the two-byte overlong encoding +of U+0000. +.PP +This flag includes the effect of +.BR LIBUTF8_ALLOW_2BYTE_NULL (3). +The two flags need not be combined. + +.SH SEE ALSO +.BR libutf8 (7), +.BR LIBUTF8_ALLOW_2BYTE_NULL (3), +.BR libutf8_decode (3), +.BR libutf8_decode_mem (3) -- cgit v1.3.1