HomeFreeBSD

iconv: only conditionally use ICONV_SET_DISCARD_ILSEQ

Description

iconv: only conditionally use ICONV_SET_DISCARD_ILSEQ

If the -c flag is used, then we can set it with ICONV_SET_DISCARD_ILSEQ;
otherwise, leave it alone. The user may have specified //IGNORE in the
'to' codeset specification, there's no reason we can't allow that but
we'll currently turn it off.

Reviewed by: thj
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34342

Details

Provenance
kevansAuthored on Feb 22 2022, 5:05 AM
Reviewer
thj
Differential Revision
D34342: iconv: only conditionally use ICONV_SET_DISCARD_ILSEQ
Parents
rG814bd1ed438f: tools: test: iconv: fix open_2 to not segfault
Branches
Unknown
Tags
Unknown