summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2003-10-21 22:57:17 (GMT)
committerandreas_kupries <akupries@shaw.ca>2003-10-21 22:57:17 (GMT)
commit95eb7edeb1e37ebd0497c92022ceb063a21ae06f (patch)
tree36ce43dd85bd8e6dcd0c3d958e4a25ed0c0b6003
parent0eaecb58f47298d9f01ce51c2bd78ac1e47ba2ad (diff)
downloadtcl-95eb7edeb1e37ebd0497c92022ceb063a21ae06f.zip
tcl-95eb7edeb1e37ebd0497c92022ceb063a21ae06f.tar.gz
tcl-95eb7edeb1e37ebd0497c92022ceb063a21ae06f.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>.
-rw-r--r--ChangeLog6
-rw-r--r--win/tclWinPipe.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 437a1da..2e59813 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-21 Andreas Kupries <andreask@pliers.activestate.com>
+
+ * 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>.
+
2003-10-14 David Gravereaux <davygrvy@pobox.com>
* win/tclAppInit.c (sigHandler): Punt gracefully if exitToken
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index a21d29c..320f99e 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.33.2.4 2003/10/04 18:59:27 mdejong Exp $
+ * RCS: @(#) $Id: tclWinPipe.c,v 1.33.2.5 2003/10/21 22:57:18 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;
}