Skip to content
Tcl Source Code History Of Ticket ad9361fd20
Login

History Of Ticket ad9361fd20

Artifacts Associated With Ticket ad9361fd20

  1. Ticket change [a0785b419c] (rid 210764) by apnadkarni on 2023-03-24 18:58:04:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. comment initialized to:
      ```
      % string range [string insert [string repeat a 0x80000000] end-0x7fffffff X] 0 10
      Xaaaaaaaaaa
      ```
      
      I expected "aXaaa..."
      
      Along the same lines,
      
      ```
      % set s [string repeat a 0xffffffff]; string length $s
      4294967295
      % string index $s end-0xfffffffe
      a
      % string range $s end-0xfffffffe  end-0xfffffffe
      ```
      
      `string index` gives correct result but not `string range`.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "18. Commands M-Z"
    15. title initialized to:
      string end-relative calculation broken for large indices
      
    16. type initialized to: "Bug"
  2. Ticket change [b4feea931a] (rid 210893) by apnadkarni on 2023-03-25 10:45:45:

    1. comment changed to:
      ```
      % string range [string insert [string repeat a 0x80000000] end-0x7fffffff X] 0 10
      Xaaaaaaaaaa
      ```
      
      I expected "aXaaa..."
      
      Along the same lines,
      
      ```
      % set s [string repeat a 0xffffffff]; string length $s
      4294967295
      % string index $s end-0xfffffffe
      a
      % string range $s end-0xfffffffe  end-0xfffffffe
        <- (empty string)
      ```
      
      `string index` gives correct result but not `string range`.
      
    2. icomment:
      Along the same lines,
      
      ```
      % string length [string range $s end-0x7fffffff end-0x7ffffffe]
      2147483664
      % string length [string range $s end-0x7ffffffd end-0x7ffffffd]
      1
      ```
      
      So the breakage seems to occur right at end-INT_MAX. I don't understand TclEncodeIndex well enough to tell if the bug is there or in the caller (range command)
      
      /Ashok
      
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
  3. Ticket change [38b0f5f509] (rid 212659) by apnadkarni on 2023-04-12 16:19:32:

    1. assignee changed to: "apnadkarni"
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  4. Ticket change [1d51860d2e] (rid 214190) by apnadkarni on 2023-05-01 12:19:00:

    1. closedate changed to: "2460066.0131983"
    2. closer changed to: "apnadkarni"
    3. icomment:
      Fixed somewhere in the TIP 660 commits. Added tests in [ed26748c6b]
      
    4. login: "apnadkarni"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"