]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man1/iconv.1: Mention that -c does not change exit status
authorFlorian Weimer <fweimer@redhat.com>
Thu, 5 Jun 2025 12:46:14 +0000 (14:46 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 11 Jun 2025 11:56:51 +0000 (13:56 +0200)
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 <fweimer@redhat.com>
Message-ID: <87msamxso9.fsf@oldenburg.str.redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man1/iconv.1

index 2c8ae0d29cd00de6088fdb7eefc7985a9ffd4e78..fba5a4a76649c1e3f995469db1a8e2e28e14df58 100644 (file)
@@ -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