localedef: Automatically mark "(x)digits" as numbers
authorJohn Marino <draco@marino.st>
Mon, 19 Oct 2015 13:39:31 +0000 (15:39 +0200)
committerJohn Marino <draco@marino.st>
Mon, 19 Oct 2015 13:39:31 +0000 (15:39 +0200)
commit348a405d996b26c56c34efba2d6a3196dfcbc14a
treefa0126e35131982a3c9da7052d00ac41782a8380
parent84b31f2935bf3a2d5afc2cb85fdd1bd8eebfe648
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.
usr.bin/localedef/ctype.c