Skip to content
Tcl Source Code History Of Ticket 3563981fffffffff
Login

History Of Ticket 3563981fffffffff

Artifacts Associated With Ticket 3563981fffffffff

  1. Ticket change [be0205098f] (rid 102005) by siqsuruq on 2012-09-01 15:58:19:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Strange cuts letter f
      example:
      
      set rest fk_frest
      string trim $rest fk_
      
      result: rest instead of frest
      
    4. foundin initialized to: "obsolete: 8.6b3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "siqsuruq"
    10. subsystem initialized to: "11. Conversions from String"
    11. title initialized to: "string trim"
    12. type initialized to: "Bug"
  2. Ticket change [78b62f1f84] (rid 90009) by nijtmans on 2012-09-01 23:21:49:

    1. assignee changed to: "nijtmans"
    2. closedate changed to: "2012-09-01T16:21:49"
    3. closer changed to: "nijtmans"
    4. icomment:
      
      
      allow_comments - 1
      
      That is as expected. All characters f, k and underscore are stripped from the start of the string
      
      
    5. login: "nijtmans"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "nijtmans"
  3. Ticket change [5414c0b2e5] (rid 93876) by dkf on 2012-09-03 00:54:26:

    1. icomment:
      [string trim] (and its trimleft/trimright variants) treats its second (non-operation) argument, if present, as containing a _set_ of characters to remove, not a substring to remove. (If absent, the set is the whitespace characters.) It has always worked this way (for at least 15 years) and it has always been documented to work this way.
      
      I suggest [string map] or [string replace] or [string range] or [regsub] or [regexp]; all can do much more relevant things than [string trim] for the desired transformation.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "18. Commands M-Z"
    5. username: "dkf"