summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2003-10-21 23:25:47 (GMT)
committerandreas_kupries <akupries@shaw.ca>2003-10-21 23:25:47 (GMT)
commit7a35ea9d8d02668b5432e6021163f53406a95e96 (patch)
tree58165b7e95a56afad1ae8b8cd7b1497b87f5ae25 /win/tclWinPipe.c
parent984a7acccb19942338e86c016a09739bb0042873 (diff)
downloadtcl-7a35ea9d8d02668b5432e6021163f53406a95e96.zip
tcl-7a35ea9d8d02668b5432e6021163f53406a95e96.tar.gz
tcl-7a35ea9d8d02668b5432e6021163f53406a95e96.tar.bz2
* win/tclWinPipe.c (BuildCommandLine): Applied the patch coming
with [Bug 805605] to the code, fixing the incorrect use of ispace noted by Ronald Dauster <ronaldd@users.sourceforge.net>.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 1348ea9..acba180 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPipe.c,v 1.37 2003/09/28 10:36:00 davygrvy Exp $
+ * RCS: @(#) $Id: tclWinPipe.c,v 1.38 2003/10/21 23:25:47 andreas_kupries Exp $
*/
#include "tclWinInt.h"
@@ -1585,8 +1585,11 @@ BuildCommandLine(
if (arg[0] == '\0') {
quote = 1;
} else {
- for (start = arg; *start != '\0'; start++) {
- if (isspace(*start)) { /* INTL: ISO space. */
+ int count;
+ Tcl_UniChar ch;
+ for (start = arg; *start != '\0'; start += count) {
+ count = Tcl_UtfToUniChar(start, &ch);
+ if (Tcl_UniCharIsSpace(ch)) { /* INTL: ISO space. */
quote = 1;
break;
}