From: Michael Orlitzky Date: Mon, 6 Jul 2026 16:10:59 +0000 (-0400) Subject: main.c: add stub test_iconv_untranslatable() X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=41bccee6c861d28a15dd5f1cd18c3f9ce8eb906e;p=iconv-quirks.git main.c: add stub test_iconv_untranslatable() --- diff --git a/main.c b/main.c index edf3510..1345e60 100644 --- a/main.c +++ b/main.c @@ -381,6 +381,19 @@ int test_iconv_ignore_ignores_invalid() { return SUCCESS; } +/* If iconv() encounters a character in the input buffer that is + * valid, but for which an identical character does not exist in the + * output codeset [and] if no indicator suffix was specified when the + * conversion descriptor cd was opened... iconv() shall perform an + * implementation-defined conversion on the character and it shall be + * counted in the return value of the iconv() call. + * + * It is merely implied, but this should not be an error. + */ +int test_iconv_untranslatable() { + return SUCCESS; +} + int main(int argc, char** argv) { int result = SUCCESS; @@ -411,6 +424,8 @@ int main(int argc, char** argv) { result |= test_iconv_too_big_is_e2big(); result |= test_iconv_incomplete_multibyte_is_einval(); + result |= test_iconv_untranslatable(); + if (ignore == SUCCESS) { result |= test_iconv_ignore_ignores_invalid(); //result |= test_iconv_ignore_ignores_untranslatable();