about summary refs log tree commit diff
path: root/iconv/iconv_prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/iconv_prog.c')
-rw-r--r--iconv/iconv_prog.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 0c1b9d045d..569bd3b3ec 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -509,14 +509,17 @@ print_known_names (void)
     {
       if (__gconv_modules_db[cnt]->from_pattern == NULL)
 	{
-	  tsearch (__gconv_modules_db[cnt]->from_constpfx, &printlist,
-		   (__compar_fn_t) strcoll);
-	  tsearch (__gconv_modules_db[cnt]->to_string, &printlist,
-		   (__compar_fn_t) strcoll);
+	  if (strcmp (__gconv_modules_db[cnt]->from_constpfx, "INTERNAL"))
+	    tsearch (__gconv_modules_db[cnt]->from_constpfx, &printlist,
+		     (__compar_fn_t) strcoll);
+	  if (strcmp (__gconv_modules_db[cnt]->to_string, "INTERNAL"))
+	    tsearch (__gconv_modules_db[cnt]->to_string, &printlist,
+		     (__compar_fn_t) strcoll);
 	}
       else
-	tsearch (__gconv_modules_db[cnt]->from_pattern, &printlist,
-		 (__compar_fn_t) strcoll);
+	if (strcmp (__gconv_modules_db[cnt]->from_pattern, "INTERNAL"))
+	  tsearch (__gconv_modules_db[cnt]->from_pattern, &printlist,
+		   (__compar_fn_t) strcoll);
     }
 
   fputs (_("\