From 340428c92ad5ccf4f698ff2dea6287f4624d401a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 12 Jul 2012 10:46:39 -0300 Subject: [PATCH] gencat/pdf.c (comp): make alphabetic index case-insensitive --- gencat/pdf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gencat/pdf.c b/gencat/pdf.c index a45d1c8..f966bfb 100644 --- a/gencat/pdf.c +++ b/gencat/pdf.c @@ -9,6 +9,7 @@ * (at your option) any later version. */ +#define _GNU_SOURCE /* for strcasecmp */ #include #include #include @@ -121,7 +122,7 @@ static int comp(const void *a, const void *b) const struct index *ai = a; const struct index *bi = b; - return strcmp(ai->s, bi->s); + return strcasecmp(ai->s, bi->s); }