]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Use ASCII-only isprint function to get consistent outputs.
authorSimon Josefsson <simon@josefsson.org>
Fri, 18 Apr 2008 07:31:46 +0000 (09:31 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 18 Apr 2008 07:31:46 +0000 (09:31 +0200)
Reported by Massimo Gaspari <massimo.gaspari@alice.it> in
<http://permalink.gmane.org/gmane.network.gnutls.general/1184>.

lib/x509/output.c

index 27a0fdae9e3b23adad23e74c42ca5707b2eeb724..30aec75f3eb552ea11796abc216cd40b8f098a63 100644 (file)
@@ -30,6 +30,7 @@
 #include <gnutls_x509.h>
 #include <x509_int.h>
 #include <gnutls_errors.h>
+#include <c-ctype.h>
 
 /* I18n of error codes. */
 #include "gettext.h"
@@ -84,7 +85,7 @@ asciiprint (gnutls_string * str, const char *data, size_t len)
   size_t j;
 
   for (j = 0; j < len; j++)
-    if (isprint (data[j]))
+    if (c_isprint (data[j]))
       addf (str, "%c", (unsigned char) data[j]);
     else
       addf (str, ".");