GNU bug report logs - #34285
grep.c should #include <strings.h>

Previous Next

Package: grep;

Reported by: DAVID MONNIAUX <david.monniaux <at> univ-grenoble-alpes.fr>

Date: Sat, 2 Feb 2019 09:10:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: DAVID MONNIAUX <david.monniaux <at> univ-grenoble-alpes.fr>, 34285 <at> debbugs.gnu.org
Subject: bug#34285: grep.c should #include <strings.h>
Date: Sun, 3 Feb 2019 11:50:31 -0800
[Message part 1 (text/plain, inline)]
Paul Eggert wrote:
> I fixed it as part of installing the attached patches.

Come to think of it, grep shouldn't call strcasecmp here. It should call 
c_strcasecmp instead because the matching should be locale-independent. So I 
installed the attached further patch and there is no longer a need to include 
strings.h even on non-GNU platforms.

[0001-grep-parse-color-arg-independent-of-locale.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.