summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-04-18 09:31:46 +0200
committerSimon Josefsson <simon@josefsson.org>2008-04-18 09:31:46 +0200
commit08fde5012fdbe55dfb06686e85fbf6047ee533d8 (patch)
tree16a9b08d66ad19c5247421218975777c87cb855c
parent963d19f052c4a3dfe9cd4f4a5cf026e0a031202b (diff)
downloadgnutls-08fde5012fdbe55dfb06686e85fbf6047ee533d8.tar.gz
Use ASCII-only isprint function to get consistent outputs.
Reported by Massimo Gaspari <massimo.gaspari@alice.it> in <http://permalink.gmane.org/gmane.network.gnutls.general/1184>.
-rw-r--r--lib/x509/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c
index 27a0fdae9e..30aec75f3e 100644
--- a/lib/x509/output.c
+++ b/lib/x509/output.c
@@ -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, ".");