From d74b34214165c77db48a845c9a9c927231b81892 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 28 Jan 2026 12:52:42 +0100 Subject: Fix typo in documentation of fl_utf8len1(). --- src/fl_utf8.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx index dd59acc10..157f1dc54 100644 --- a/src/fl_utf8.cxx +++ b/src/fl_utf8.cxx @@ -122,8 +122,7 @@ int fl_utf8len(char c) /** - Returns the byte length of the UTF-8 sequence with first byte \p c, - or -1 if \p c is not valid. + Returns the byte length of the UTF-8 sequence with first byte \p c, or 1 if \p c is not valid. This function can be used to scan faulty UTF-8 sequences, albeit ignoring invalid codes. -- cgit v1.2.3