summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2014-11-13 14:13:08 (GMT)
committerhypnotoad <yoda@etoyoc.com>2014-11-13 14:13:08 (GMT)
commite8791dff8521f08ab72ba7b5b3453d0b523b6c41 (patch)
treee4ffd7530c91f327857687d7b09a1f360f364f15 /win/tclWinChan.c
parent80eb226a4cd11f29ef5edbb116522735d1a106c9 (diff)
parent88c3379dd281e3efc6f1c961ff6cce618972065c (diff)
downloadtcl-e8791dff8521f08ab72ba7b5b3453d0b523b6c41.zip
tcl-e8791dff8521f08ab72ba7b5b3453d0b523b6c41.tar.gz
tcl-e8791dff8521f08ab72ba7b5b3453d0b523b6c41.tar.bz2
Merging in changes from trunk
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 48acacb..2d6c42c 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -843,6 +843,11 @@ TclpOpenFileChannel(
nativeName = Tcl_FSGetNativePath(pathPtr);
if (nativeName == NULL) {
+ if (interp != (Tcl_Interp *) NULL) {
+ Tcl_AppendResult(interp, "couldn't open \"",
+ TclGetString(pathPtr), "\": filename is invalid on this platform",
+ NULL);
+ }
return NULL;
}