From: Simon Josefsson Date: Fri, 18 Apr 2008 07:31:46 +0000 (+0200) Subject: Use ASCII-only isprint function to get consistent outputs. X-Git-Tag: gnutls_2_3_7~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08fde5012fdbe55dfb06686e85fbf6047ee533d8;p=thirdparty%2Fgnutls.git Use ASCII-only isprint function to get consistent outputs. Reported by Massimo Gaspari in . --- 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 #include #include +#include /* 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, ".");