]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iconv_std: complete the //IGNORE support
authorKyle Evans <kevans@FreeBSD.org>
Tue, 22 Feb 2022 07:15:04 +0000 (01:15 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 11 Aug 2022 16:42:20 +0000 (11:42 -0500)
commit693f88c9da8dccf173b40fd57d1d15504a54e9b4
tree52d94fdb77548882d9ea246548f381be0293c216
parent2300a22c971240e813e73515acfa3970e0871b20
iconv_std: complete the //IGNORE support

Previously, it would only ignore failures due to csmapper conversion
failure.  It may be the case that the input string contains invalid
sequences that also need to be ignored.

A good example of //IGNORE application is sanitizing user- or remotely-
specified strings that are expected to be UTF-8; perhaps as part of a
pipeline that will feed the result into a system less tested against or
tolerant of illegal UTF-8 sequences.

Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34345
lib/libiconv_modules/iconv_std/citrus_iconv_std.c