Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9ab66b198e7467f5017ac1f67b123073302d3c64
Ticket: ae61a67192e4a9ffea855790efc373ddb440926a
file type on Windows generates error for built-in file names like CON
User & Date: sebres on 2016-07-08 16:06:52
Changes

  1. icomment:
    > Note you can open c:/temp/con.txt and write to it. Output goes to the console.
    
    What I meant was, that described behavior for special built-in names are expected to be fixed as well as without extension and with extension also.
    
    So in the possible fix only the name of file should be verified (without given extension or directory if it was specified)...
    
    I mean something like (following code in tcl):
    ```
    if {[string tolower [file root [file tail "c:/a/b/c/con.txt"]]] in {con lpt ...}} {
      ... special case (no file) ...
    } else {
      ... file or directory ...
    }
    ```
    
  2. login: "sebres"
  3. mimetype: "text/plain"