path: root/src/ctype/iswalnum.c
diff options
authorRich Felker <>2012-04-23 15:25:23 -0400
committerRich Felker <>2012-04-23 15:25:23 -0400
commit7e38b1ea2bf1a0817942275cea89c959bf446d87 (patch)
tree1f35fdc54a5eb360956b3ab9ce142a29ebf2dc62 /src/ctype/iswalnum.c
parenta5d10eb1f587a13a513504ffb5d8e6a8738eee6f (diff)
destubify iswalpha and update iswpunct to unicode 6.1
alpha is defined as unicode property "Alphabetic" plus category Nd minus ASCII digits minus 2 special-cased Thai punctuation marks supposedly misclassified by Unicode as letters. punct is defined as all of unicode except control, alphanumeric, and space characters. the tables were generated by a simple tool based on the code posted previously to the mailing list. in the future, this and other code used for maintaining locale/iconv/i18n data will be published either in the main source repository or in a separate locale data generation repository.
Diffstat (limited to 'src/ctype/iswalnum.c')
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ctype/iswalnum.c b/src/ctype/iswalnum.c
index d3b56674..35dbe02c 100644
--- a/src/ctype/iswalnum.c
+++ b/src/ctype/iswalnum.c
@@ -1,9 +1,7 @@
#include <wchar.h>
#include <wctype.h>
-#undef iswalnum
int iswalnum(wint_t wc)
- return (unsigned)wc-'0' < 10 || iswalpha(wc);
+ return iswdigit(wc) || iswalpha(wc);