summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-12-05 16:57:32 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-12-05 16:57:32 (GMT)
commit4f1e1c42b0e26190057bb915acf701907f82ff63 (patch)
tree3841ffa77e126d312d090b3dd66583b2548a5f35 /unix/tclUnixPipe.c
parent85e3751c642a33bb65b2fa23fb103961fa2436c3 (diff)
downloadtcl-4f1e1c42b0e26190057bb915acf701907f82ff63.zip
tcl-4f1e1c42b0e26190057bb915acf701907f82ff63.tar.gz
tcl-4f1e1c42b0e26190057bb915acf701907f82ff63.tar.bz2
Also ensure no encoding exceptions raised when reading pipe stderr
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index a889f1d..f1e3fb8 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -1102,6 +1102,8 @@ PipeClose2Proc(
errChan = Tcl_MakeFileChannel(
INT2PTR(GetFd(pipePtr->errorFile)),
TCL_READABLE);
+ /* Error channels should raise encoding errors */
+ Tcl_SetChannelOption(NULL, errChan, "-profile", "replace");
} else {
errChan = NULL;
}