summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-08 08:26:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-08 08:26:58 (GMT)
commit2ab08afabdfc1091ae69439fb7c8bf81e8729e3e (patch)
tree5d0ad393849e7c2d6b1b88d3f6d413ff2b505f14 /win
parent68be5b2b62dfcf1b9b7e348a71c4d88e08f19ef9 (diff)
downloadtcl-2ab08afabdfc1091ae69439fb7c8bf81e8729e3e.zip
tcl-2ab08afabdfc1091ae69439fb7c8bf81e8729e3e.tar.gz
tcl-2ab08afabdfc1091ae69439fb7c8bf81e8729e3e.tar.bz2
Better UTF-8 surrogate handling, only functional when TCL_UTF_MAX>3
Diffstat (limited to 'win')
-rw-r--r--win/tclWinPipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index fe0ed2d..4b372a5 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1479,7 +1479,7 @@ BuildCommandLine(
quote = 1;
} else {
int count;
- Tcl_UniChar ch;
+ Tcl_UniChar ch = 0;
for (start = arg; *start != '\0'; start += count) {
count = TclUtfToUniChar(start, &ch);