iswdigit(3), iswxdigit(3): Don't limit to U007F
authorJohn Marino <draco@marino.st>
Sun, 30 Aug 2015 18:59:42 +0000 (20:59 +0200)
committerJohn Marino <draco@marino.st>
Sun, 30 Aug 2015 19:33:06 +0000 (21:33 +0200)
commitdd9cad116189bce7a229f51279af450e09c1afb1
tree6ddc6e695e5ab4f2f4fdd5563a23e2d58e7d4f68
parent2fd3998968a52f00689d22718a0b21c3ac087a4e
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.
include/wctype.h
lib/libc/locale/iswctype.c