From: Florian Weimer Date: Thu, 5 Jun 2025 12:46:14 +0000 (+0200) Subject: man/man1/iconv.1: Mention that -c does not change exit status X-Git-Tag: man-pages-6.15~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1324c82d0fedb45678d7c74cda2200f14f75a72;p=thirdparty%2Fman-pages.git man/man1/iconv.1: Mention that -c does not change exit status And that input decoding failures are treated as errors. Exiting with status 0 is a POSIX conformance issue that was fixed in glibc 2.41. Signed-off-by: Florian Weimer Message-ID: <87msamxso9.fsf@oldenburg.str.redhat.com> Reviewed-by: Carlos O'Donell Signed-off-by: Alejandro Colomar --- diff --git a/man/man1/iconv.1 b/man/man1/iconv.1 index 2c8ae0d29..fba5a4a76 100644 --- a/man/man1/iconv.1 +++ b/man/man1/iconv.1 @@ -55,6 +55,8 @@ is appended to .IR to-encoding , characters that cannot be converted are discarded and an error is printed after conversion. +(Characters that cannot be decoded are treated as an error +with or without this flag.) .IP If the string .B //TRANSLIT @@ -73,8 +75,11 @@ transliterated are replaced with a question mark (?) in the output. List all known character set encodings. .TP .B \-c -Silently discard characters that cannot be converted instead of +Discard characters that cannot be converted instead of terminating when encountering such characters. +.\" glibc commit 6cbf845fcdc76131d0e674cee454fe738b69c69d +POSIX requires that this option does not change +the exit status of the program. .TP .BI \-\-output= outputfile .TQ