git: libc: Fix strcasecmp_l() and strncasecmp_l() issues.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed May 21 12:13:29 PDT 2014


commit 5d7045343743889ccbfd3c1dfb20873e9efad024
Author: Sascha Wildner <saw at online.de>
Date:   Wed May 21 21:11:54 2014 +0200

    libc: Fix strcasecmp_l() and strncasecmp_l() issues.
    
    POSIX.1-2008 specifies that those two functions should be declared by
    including <strings.h>, not <string.h> (the latter only has strcoll_l()
    and strxfrm_l()):
    
    http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html
    
    It looks like FreeBSD got this wrong in their xlocale stuff originally.
    
    And it looks like the only clean way to properly solve it is to split
    <xlocale/_string.h> into <xlocale/_string.h> and <xlocale/_strings.h>,
    which this commit does.

Summary of changes:
 include/strings.h                         |  4 ++++
 include/xlocale/Makefile                  |  2 +-
 include/xlocale/_string.h                 |  2 --
 include/xlocale/{_string.h => _strings.h} | 23 +++++------------------
 4 files changed, 10 insertions(+), 21 deletions(-)
 copy include/xlocale/{_string.h => _strings.h} (76%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5d7045343743889ccbfd3c1dfb20873e9efad024


-- 
DragonFly BSD source repository


More information about the Commits mailing list