git: localedef: Automatically mark "(x)digits" as numbers

John Marino marino at crater.dragonflybsd.org
Mon Oct 19 06:43:22 PDT 2015


commit 348a405d996b26c56c34efba2d6a3196dfcbc14a
Author: John Marino <draco at marino.st>
Date:   Mon Oct 19 15:39:31 2015 +0200

    localedef: Automatically mark "(x)digits" as numbers
    
    With regard to ctype, digits (e.g. 0 to 9) and xdigits (the 0 to 9 portion
    of hexidecimal numbers) are all considered "numbers".  (Note that while
    all digits are numbers, not all numbers are digits).
    
    Enhance localedef to automatically set the "number" characteristic when
    it encounters a digit or xdigit definition.  This should fix
    malfunctioning "isalnum" and presumably "isnumber" libc functions.

Summary of changes:
 usr.bin/localedef/ctype.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/348a405d996b26c56c34efba2d6a3196dfcbc14a


-- 
DragonFly BSD source repository



More information about the Commits mailing list