Nick Wellnhofer 69b83bb68e encoding: Detect truncated multi-byte sequences with ICU
Unlike iconv or the internal converters, ICU consumes truncated multi-
byte sequences at the end of an input buffer. We currently check for a
non-empty raw input buffer to detect truncated sequences, so this fails
with ICU.

It might be possible to inspect the pivot buffer pointers, but it seems
cleaner to implement a `flush` flag for some encoding and I/O functions.
After flushing, we can check for U_TRUNCATED_CHAR_FOUND with ICU, or
detect remaining input with other converters.

Also fix detection of truncated sequences for HTML, XML content and
DTDs with iconv.
2025-03-13 22:15:10 +01:00
..
2023-12-21 15:02:24 +01:00
2023-12-21 15:02:24 +01:00
2023-12-21 15:02:24 +01:00
2023-12-21 15:02:24 +01:00
2023-12-21 15:02:24 +01:00
2023-12-21 15:02:24 +01:00
2019-05-20 13:38:22 +02:00
2019-05-20 13:38:22 +02:00
2017-06-17 16:34:23 +02:00
2017-06-17 16:34:23 +02:00
2023-12-28 16:47:41 +01:00