[pacman-dev] Parsing config file question

Xavier shiningxc at gmail.com
Fri Jul 27 10:52:18 EDT 2007


On Fri, Jul 27, 2007 at 10:43:32AM -0400, Dan McGee wrote:
> 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.
> 

Well, I couldn't find the explanation you just made in that bug report.
Actually I couldn't find this information anywhere. Maybe the quick description
you just made deserves to be in the code itself?




More information about the pacman-dev mailing list