commit | 3150da34c2689b28154432c4b863e01ab92d3214 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Thu Jan 18 18:54:50 2024 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Jan 24 16:17:14 2024 -0500 |
tree | c31b32d8c73f1c7671cf9ad42b9434b68345506e | |
parent | 3d878b83d091a202c67cc3184ba8f37ad79f2307 [diff] [blame] |
lib: add comment in utf8_to_utf32_stream() The logic of utf8_to_utf32_stream() is not easy to understand. Add a comment. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
diff --git a/lib/charset.c b/lib/charset.c index 89057ef..2b43175 100644 --- a/lib/charset.c +++ b/lib/charset.c
@@ -570,6 +570,10 @@ } if (pos == end) return 0; + /* + * Appending the byte lead to an invalid UTF-8 byte sequence. + * Consider it as the start of a new code sequence. + */ *buffer = 0; } }