Case-less comparisons in configuration parsing

Florian Weimer fweimer@redhat.com
Fri Sep 16 09:28:00 GMT 2016


nscd calls setlocale early on and does this:

nscd/nscd_conf.c:232:     if (strcasecmp (arg1, "unlimited") == 0)

I assume this will not have the expected effect in a Turkish locale, 
where "UNLIMITED" down-cases to "unlımıted" (with dotless “ı”).

I suggest we always use the C locale for comparisons involving settings 
such as "on", "off", "all", or "unlimited".

Comments?

Thanks,
Florian



More information about the Libc-alpha mailing list