summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-11-03 10:14:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-11-03 10:14:48 (GMT)
commit746cb2938e7c4bf900a55899aa1445ece67d52ea (patch)
treefc6bd4bf6d15581285df1a3de4004169d6b1f3b6 /win
parent384950b6d12f0e3d0da23ed08707b41eb609c9cd (diff)
downloadtcl-746cb2938e7c4bf900a55899aa1445ece67d52ea.zip
tcl-746cb2938e7c4bf900a55899aa1445ece67d52ea.tar.gz
tcl-746cb2938e7c4bf900a55899aa1445ece67d52ea.tar.bz2
Better errormessage when file path contains invalid characters. See: [03414f517b7a74].
Diffstat (limited to 'win')
-rw-r--r--win/tclWinChan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 6d480a8..a271919 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -840,6 +840,11 @@ TclpOpenFileChannel(
nativeName = (TCHAR*) 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;
}