$NetBSD: patch-ag,v 1.4 2013/08/16 08:30:20 hannken Exp $ The ctype functions work on integers. --- getdate.c.orig 2013-08-08 13:58:07.000000000 +0000 +++ getdate.c @@ -2547,7 +2547,7 @@ LookupWord (buff) /* Make it lowercase. */ for (p = buff; *p; p++) if (ISUPPER ((unsigned char) *p)) - *p = tolower (*p); + *p = tolower ((unsigned char)(*p)); if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0) {