This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Case-less comparisons in configuration parsing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]