diff options
| author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-12-05 16:57:32 (GMT) |
|---|---|---|
| committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-12-05 16:57:32 (GMT) |
| commit | 4f1e1c42b0e26190057bb915acf701907f82ff63 (patch) | |
| tree | 3841ffa77e126d312d090b3dd66583b2548a5f35 /unix/tclUnixPipe.c | |
| parent | 85e3751c642a33bb65b2fa23fb103961fa2436c3 (diff) | |
| download | tcl-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.c | 2 |
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; } |
