diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-11-03 12:54:25 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-11-03 12:54:25 (GMT) |
| commit | bfe1a07eed8916a90fbba8e5f0d807787cbd919a (patch) | |
| tree | 108eb7029d3260cbad294cd97c09a6c18b50cf39 /unix/tclUnixChan.c | |
| parent | 4bb9d5a342fe22d2c683221a7e6246fd2c844553 (diff) | |
| parent | 37cce8feb8dce8f7ea288fb42678107db79a9a0c (diff) | |
| download | tcl-bfe1a07eed8916a90fbba8e5f0d807787cbd919a.zip tcl-bfe1a07eed8916a90fbba8e5f0d807787cbd919a.tar.gz tcl-bfe1a07eed8916a90fbba8e5f0d807787cbd919a.tar.bz2 | |
Add test-case for previous commit, which shows that when trying to open a filename with invalid characters gives the right error-message. (same bug existed on UNIX too, which is now fixed)
Diffstat (limited to 'unix/tclUnixChan.c')
| -rw-r--r-- | unix/tclUnixChan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index fdc9d1d..2eca714 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -1361,6 +1361,11 @@ TclpOpenFileChannel( native = Tcl_FSGetNativePath(pathPtr); if (native == NULL) { + if (interp != (Tcl_Interp *) NULL) { + Tcl_AppendResult(interp, "couldn't open \"", + TclGetString(pathPtr), "\": filename is invalid on this platform", + NULL); + } return NULL; } |
