<commit_before>diff --git a/src/idn2.c b/src/idn2.c
index 6abbc72..804f0f2 100644
--- a/src/idn2.c
+++ b/src/idn2.c
@@ -31,7 +31,6 @@
 #include <unistr.h>
 
 /* Gnulib headers. */
-#include "error.h"
 #include "gettext.h"
 #define _(String) dgettext (PACKAGE, String)
 #include "progname.h"
@@ -161,9 +160,7 @@ process_input (char *readbuf, int flags)
       free (output);
     }
   else
-    error (EXIT_FAILURE, 0, "%s: %s",
-	   args_info.register_given ? "register" : "lookup",
-	   idn2_strerror (rc));
+    perror (idn2_strerror (rc));
 }
 
 int
@@ -222,7 +219,7 @@ main (int argc, char *argv[])
     }
 
   if (ferror (stdin))
-    error (EXIT_FAILURE, errno, "%s", _("input error"));
+    perror (_("input error"));
 
   cmdline_parser_free (&args_info);
<commit_msg>libidn2: Correct a broken darwin patch<commit_after>diff --git a/src/idn2.c b/src/idn2.c
index 6abbc72..804f0f2 100644
--- a/src/idn2.c
+++ b/src/idn2.c
@@ -31,7 +31,6 @@
 #include <unistr.h>
 
 /* Gnulib headers. */
-#include "error.h"
 #include "gettext.h"
 #define _(String) dgettext (PACKAGE, String)
 #include "progname.h"
@@ -222,7 +219,7 @@ main (int argc, char *argv[])
     }
 
   if (ferror (stdin))
-    error (EXIT_FAILURE, errno, "%s", _("input error"));
+    perror (_("input error"));
 
   cmdline_parser_free (&args_info);

{'fraction_non_alphanumeric': 0.19771863117870722, 'fraction_numerical': 0.05779467680608365, 'mean_word_length': 3.272727272727273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '134388', 'n_tokens_mistral': 600, 'n_tokens_neox': 545, 'n_words': 123}