diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-17 13:23:29 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-06-17 13:23:29 (GMT) |
commit | 70024494041b53923a32939fa834efcfd2f1f888 (patch) | |
tree | 8fc39e68df09b49e0f94ad8866e2202da1168dfa /generic/tclCmdAH.c | |
parent | f6678bdedc2a7668eb984f7e375886da59a63888 (diff) | |
download | tcl-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/tclCmdAH.c')
-rw-r--r-- | generic/tclCmdAH.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index 44f08a3..7f0df83 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -130,8 +130,7 @@ Tcl_CaseObjCmd( for (i = 0; i < caseObjc; i += 2) { int patObjc, j; const char **patObjv; - char *pat; - unsigned char *p; + char *pat, *p; if (i == (caseObjc - 1)) { Tcl_ResetResult(interp); @@ -145,8 +144,8 @@ Tcl_CaseObjCmd( */ pat = TclGetString(caseObjv[i]); - for (p = (unsigned char *) pat; *p != '\0'; p++) { - if (isspace(*p) || (*p == '\\')) { /* INTL: ISO space, UCHAR */ + for (p = pat; *p != '\0'; p++) { + if (TclIsSpaceProc(*p) || (*p == '\\')) { break; } } |