diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-10-31 11:31:13 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-10-31 11:31:13 +0000 |
commit | b76e363919d6252199a605daffe37bad059545aa (patch) | |
tree | e8fe24a751972c30c63eea2eaf2da584abac944d /lib/libXaw/src/XawI18n.c | |
parent | 53620d535679a781b1136b1b71f8f986630ec8a5 (diff) |
Update to libXaw 1.0.8. No functionnal change.
Diffstat (limited to 'lib/libXaw/src/XawI18n.c')
-rw-r--r-- | lib/libXaw/src/XawI18n.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libXaw/src/XawI18n.c b/lib/libXaw/src/XawI18n.c index ca95866e5..9a49521a9 100644 --- a/lib/libXaw/src/XawI18n.c +++ b/lib/libXaw/src/XawI18n.c @@ -1,5 +1,3 @@ -/* $Xorg: XawI18n.c,v 1.4 2001/02/09 02:03:47 xorgcvs Exp $ */ - /* Copyright 1991 NCR Corporation - Dayton, Ohio, USA */ /* @@ -53,7 +51,6 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/lib/Xaw/XawI18n.c,v 1.7 2001/01/17 19:42:36 dawes Exp $ */ #ifdef HAVE_CONFIG_H #include <config.h> @@ -96,9 +93,13 @@ _Xaw_iswspace(wchar_t w) int _Xaw_iswalnum(wchar_t ch) { - unsigned char mb[sizeof(wchar_t)]; +#ifdef HAVE_ISWALNUM + return iswalnum(ch); +#else + unsigned char mb[MB_LEN_MAX]; wctomb((char*)mb, ch); return (isalnum(*mb)); +#endif } |