A more precise iswgraph() backup (forgot to commit before)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2163 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2006-01-12 00:46:02 +00:00
parent e8b462a54a
commit cbb38e0e81
+2 -2
View File
@@ -133,8 +133,8 @@ typedef unsigned int wint_t;
# include <ctype.h>
static inline int
iswgraph(wint_t wc)
{
return wc > 0x7f || isgraph((int) wc);
{ // this is not exact as UCS defines many more non-printable
return wc > 0xa0 || (wc < 0x80 && isgraph((int) wc));
}
#endif