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
rGe683e1fc0fde: date: attempt to more accurately describe year limitations with -v
Branches
Unknown
Tags
Unknown