* src/digest.c (hex_equal): Work even in oddball locales
where tolower does not work as expected on ASCII letters.
#include <config.h>
-#include <ctype.h>
#include <getopt.h>
#include <sys/types.h>
size_t cnt;
for (cnt = 0; cnt < digest_bin_bytes; ++cnt)
{
- if (tolower (hex_digest[2 * cnt])
+ if (c_tolower (hex_digest[2 * cnt])
!= bin2hex[bin_buffer[cnt] >> 4]
- || (tolower (hex_digest[2 * cnt + 1])
+ || (c_tolower (hex_digest[2 * cnt + 1])
!= (bin2hex[bin_buffer[cnt] & 0xf])))
break;
}