example/icu.c


Log

Author Commit Date CI Message
Nick Wellnhofer b3492259 2025-03-14T00:01:11 include: Change some return types from int to enum This also affects some new functions from 2.13.
Nick Wellnhofer 84c6524e 2025-03-13T19:45:35 encoding: Support input-only and output-only converters Make it possible to open an encoding handler only for input or output. This avoids the creation of unnecessary converters. Should also fix #863.
Nick Wellnhofer 69b83bb6 2025-03-10T02:18:51 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.
Nick Wellnhofer 87c9e000 2025-03-09T22:20:23 encoding: Rework custom encoding implementation API
Nick Wellnhofer cdfb54ff 2025-01-31T18:38:40 Fix typos
Nick Wellnhofer ec909ed2 2024-11-22T20:24:02 example: Fix indentation in icu.c, mention in NEWS
Nick Wellnhofer 9cd47487 2024-11-22T19:51:32 doc: Add example for ICU with xmlCtxtSetCharEncConvImpl See #819.