lib/locale.t: Fix :digit:, :xdigit: tests
authorKarl Williamson <public@khwilliamson.com>
Thu, 15 Aug 2013 18:31:55 +0000 (12:31 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 15 Aug 2013 22:49:30 +0000 (16:49 -0600)
commitaac995d2b2c0c1e5e00886927a0c8da79ca5ab56
treed8fb7e9f29f33a8ab84c623d0462f7998dc3c604
parenta810e350c556af54b73d144bbe1d250bf32af62f
lib/locale.t: Fix :digit:, :xdigit: tests

In commit 32e8aa3fdb11b64c2a141bf56441761d978fd17b, I forgot that the
POSIX standard allows \d ([:digit:]) to match either the 10 ASCII
digits, or those plus another 10 locale-dependent ones.  This new commit
tests that the number matched is either 10 or 20, and if not 10, then
\d doesn't have to be a subset of [:xdigit:], so skip that test.
lib/locale.t