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.

(cherry picked from commit ea0f37dec65daf2b7e05712738cd1720aae129eb)

Details

Provenance
kevansAuthored on Feb 22 2022, 5:05 AM
Parents
rG94f51bb57834: alc: force maximum payload size to 128 bytes for AR816X/AR817x
Branches
Unknown
Tags
Unknown