Hi Pali,

> IIRC toupper() for lowercase i with dot in Turkish locale returns
> uppercase I with dot. In English or C locale it is uppercase I without
> dot.
>
> I guess that for case-insensitive parsing of config options (which are
> written in English) should be used toupper() variant in C locale.
>
> There is a standard POSIX function toupper_l() which takes as a second
> argument locale. So I think that for reading config file it should be
> used function toupper_l() with C locale instead of locale-dependent
> toupper() function.

Indeed. This all matches my own analysis and reflects where I had got
to in previous email; apologies if that was not clearer.


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org 🍥 chris-lamb.co.uk
       `-

Reply via email to