Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4c5bf8f1f569b95f9ba85ca817a85bf3b2d98e441b87af2762c0353307314e28
Ticket: 8cd74c5cd2e93ad82b6913847a08381977eaefc3
2-argument string toupper/tolower/totitle doesn't work as documented
User & Date: jan.nijtmans on 2025-07-12 16:36:22
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    According to the documentation:
    <pre>
    If first is specified, it refers to the first char index in the string to start modifying
    </pre>
    The documentation doesn't specify what happens if _last_ is not specified, but this suggests that modification of the string will be done until the end (just as when neither _first_ and _last_ are specified). That's not what happens:
    <pre>
    $ tclsh8.6
    % string tolower ABC 1
    AbC
    </pre>
    Reading the documentation, I would expect "Abc" as the answer. So, either the documentation or the implementation should change.
    
    I'm not 100% sure, but I'm leaning towards changing the documentation.
    
  5. is_private changed to: "0"
  6. login: "jan.nijtmans"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    2-argument string toupper/tolower/totitle doesn't work as documented
    
  15. type changed to: "Bug"