summaryrefslogtreecommitdiff
path: root/lib/malloc/scratch_buffer_grow_preserve.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-01-01 19:48:54 +0100
committerBruno Haible <bruno@clisp.org>2022-01-01 19:48:54 +0100
commita7b896b830ae70699473440199889ffc0088cf29 (patch)
tree96cadc34b803f59ef7eb1bb135fd84e1ba233068 /lib/malloc/scratch_buffer_grow_preserve.c
parentff468794101e86e0e198fdfdba23df7f575cc570 (diff)
downloadgnulib-a7b896b830ae70699473440199889ffc0088cf29.tar.gz
striconveh: Support an error handler that produces a Unicode U+FFFD.
Suggested by Marc Nieper-Wißkirchen in <https://lists.gnu.org/archive/html/bug-gnulib/2021-12/msg00175.html>. * lib/iconveh.h (iconveh_replacement_character): New enum value. * lib/striconveh.c (mem_cd_iconveh_internal): When the handler is iconveh_replacement_character, try to produce U+FFFD when possible, instead of '?'. * tests/test-striconveh.c (main): Add GB18030 tests. Test also iconveh_replacement_character.
Diffstat (limited to 'lib/malloc/scratch_buffer_grow_preserve.c')
0 files changed, 0 insertions, 0 deletions