]> gitweb.michael.orlitzky.com - iconv-quirks.git/commitdiff
main.c: add stub test_iconv_untranslatable()
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 6 Jul 2026 16:10:59 +0000 (12:10 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 6 Jul 2026 16:10:59 +0000 (12:10 -0400)
main.c

diff --git a/main.c b/main.c
index edf351019af6d43f1cf45368db38d8926f6aa062..1345e60fa4d788ab5bd1285b0e3415be3c7c80a9 100644 (file)
--- 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();