diff options
Diffstat (limited to 'win/tclWinError.c')
-rw-r--r-- | win/tclWinError.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/tclWinError.c b/win/tclWinError.c index fea4b0f..5d4423b 100644 --- a/win/tclWinError.c +++ b/win/tclWinError.c @@ -406,6 +406,9 @@ tclWinDebugPanic( } OutputDebugStringW(msgString); } else { + if (!isatty(fileno(stderr))) { + fprintf(stderr, "\xef\xbb\xbf"); + } vfprintf(stderr, format, argList); fprintf(stderr, "\n"); fflush(stderr); |