[pacman-dev] Parsing config file question

Dan McGee dpmcgee at gmail.com
Fri Jul 27 10:43:32 EDT 2007


On 7/27/07, Andrew Fyfe <andrew at neptune-one.net> wrote:
> Why does pacman do this...
>
> if(strcmp(key, "ShowSize") == 0 || strcmp(upperkey, "SHOWSIZE") == 0)
>
> Is there any reason why we can't do...
>
> if(strcmp(upperkey, "SHOWSIZE") == 0)

http://bugs.archlinux.org/task/7235

That should explain most of it. What it came down to was options
containing the 'i' character- in the Turkish locale, upper(LogFile) !=
LOGFILE. There are two 'i-like' characters, one with a dot and one
without and it was causing issues. Thus the seemingly duplicate checks
in our code.

-Dan




More information about the pacman-dev mailing list