summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-17 13:23:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-17 13:23:29 (GMT)
commit70024494041b53923a32939fa834efcfd2f1f888 (patch)
tree8fc39e68df09b49e0f94ad8866e2202da1168dfa /generic/tclUtf.c
parentf6678bdedc2a7668eb984f7e375886da59a63888 (diff)
downloadtcl-70024494041b53923a32939fa834efcfd2f1f888.zip
tcl-70024494041b53923a32939fa834efcfd2f1f888.tar.gz
tcl-70024494041b53923a32939fa834efcfd2f1f888.tar.bz2
Use more portable TclIsSpaceProc() in stead of isspace().
Make sure that "string is space \u180e" continues to return 1 for whatever unicode version.
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index f3d1758..a122685 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -1554,7 +1554,9 @@ Tcl_UniCharIsSpace(
*/
if (((Tcl_UniChar) ch) < ((Tcl_UniChar) 0x80)) {
- return isspace(UCHAR(ch)); /* INTL: ISO space */
+ return TclIsSpaceProc(ch);
+ } else if ((Tcl_UniChar) ch == 0x180e) {
+ return 1;
} else {
return ((SPACE_BITS >> GetCategory(ch)) & 1);
}