ladybird/Libraries/LibTextCodec
Andreas Kling 01cec162c8 LibTextCodec: Stop buffering invalid UTF-8 tails
Treat trailing UTF-8 prefixes with an invalid second byte as complete
input for streaming decode, so replacement characters are emitted in the
current chunk instead of being held until later input or finish. Keep
valid incomplete prefixes buffered across chunk boundaries.

Keep TextDecoderStream from holding continuation bytes after an invalid
lead byte at a chunk boundary. Add LibTextCodec and TextDecoderStream
coverage for invalid tails, valid split sequences, EOF partials,
surrogate sequences, and malformed continuation tails.
2026-05-18 14:08:22 +02:00
..
CMakeLists.txt LibTextCodec: Enable EXPLICIT_SYMBOL_EXPORT 2025-08-23 16:04:36 -06:00
Decoder.cpp LibTextCodec: Stop buffering invalid UTF-8 tails 2026-05-18 14:08:22 +02:00
Decoder.h LibTextCodec: Allow processing decoded UTF-16 code points 2026-05-18 09:18:35 +02:00
Encoder.cpp LibTextCodec: Update GB18030 for GB18030-2022 and import WPT tests 2026-05-09 11:44:42 +02:00
Encoder.h LibTextEncoder/LibURL: Cleanup includes 2026-02-26 18:31:57 +01:00
Forward.h LibTextCodec: Add streaming decoder 2026-04-29 04:12:44 +02:00
indexes.json LibTextCodec: Update GB18030 for GB18030-2022 and import WPT tests 2026-05-09 11:44:42 +02:00