diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-11-03 10:14:48 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-11-03 10:14:48 (GMT) |
| commit | 4ee42ca0708b4db24d639e63d97a2f9c43964d0c (patch) | |
| tree | fc6bd4bf6d15581285df1a3de4004169d6b1f3b6 /win/tclWinChan.c | |
| parent | 634a1f7ff81fce7a08397e5208e657affaf2b370 (diff) | |
| download | tcl-4ee42ca0708b4db24d639e63d97a2f9c43964d0c.zip tcl-4ee42ca0708b4db24d639e63d97a2f9c43964d0c.tar.gz tcl-4ee42ca0708b4db24d639e63d97a2f9c43964d0c.tar.bz2 | |
Better errormessage when file path contains invalid characters. See: [03414f517b7a74].
Diffstat (limited to 'win/tclWinChan.c')
| -rw-r--r-- | win/tclWinChan.c | 5 |
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; } |
