Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9dd3c28ecba2c2fa315258f0a821ff809b3625c2c52c01f63049b4b79803d695
Ticket: e155cedf33aca13baf5ab0f3749b00861d8924d5
Error-handling in TclGetOpenMode()
User & Date: jan.nijtmans on 2024-04-10 13:16:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Function TclGetOpenMode() doesn't do much error-handling. For example:
    <pre>
    $ tclsh8.6
    % open README.md {RDWR RDONLY}
    file3
    </pre>
    This should be invalid, as `RDWR` and `RDONLY` are incompatible. Also, it doesn't handle repeating:
    <pre>
    $ tclsh8.6
    % open README.md {RDWR RDWR}
    file3
    </pre>
    
    This was noted while working on [https://core.tcl-lang.org/tips/doc/trunk/tip/691.md|TIP #691], but since it would make the TIP
    implementation unneccesary big it's better to separate it.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "37. File System"
  15. title changed to: "Error-handling in TclGetOpenMode()"
  16. type changed to: "Bug"