git: iswdigit(3), iswxdigit(3): Don't limit to U007F

John Marino marino at crater.dragonflybsd.org
Sun Aug 30 12:33:43 PDT 2015


commit dd9cad116189bce7a229f51279af450e09c1afb1
Author: John Marino <draco at marino.st>
Date:   Sun Aug 30 20:59:42 2015 +0200

    iswdigit(3), iswxdigit(3): Don't limit to U007F
    
    We inherited a valid range of 00 - 127 for checking wide characters for
    type digit or xdigit.
    
    This is a mistake.  The relationship between digits (iswdigit) and
    numbers (iswnumber, iswalnum) is that digits are a subset of numbers.
    Digits are also a subset of xdigits (iswxdigit).  Digits are limited
    to radix-10.  Numeric typess, on the other hand, include factions,
    Roman Numerals, circled, etc.  It should cover the entire unicode
    (UTF-8) range.
    
    Unfortunately, DragonFly doesn't support the "number" type yet.  The
    iswnumber and iswalnum just use the "digit" definition.  Note that
    before this commit, they used full range for "digit" type while the
    iswdigit() and iswdigits() themselves were limited.

Summary of changes:
 include/wctype.h           | 4 ++--
 lib/libc/locale/iswctype.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dd9cad116189bce7a229f51279af450e09c1afb1


-- 
DragonFly BSD source repository



More information about the Commits mailing list