Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d313f6105237a7c1b6148a8c2b78106f55b1e32ea04a94df97a30d93497f1f31
Ticket: 33ab6d08ebdc0b422d26c59211168648138885fa
Inconsistent behavior with encoding convertfrom -failindex
User & Date: apnadkarni on 2023-02-06 17:17:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    The -failindex option seems to behave differently depending on the nature of the invalid byte sequence.
    
    ```
    %  encoding convertfrom -failindex idx utf-8 A\xC2
    A
    % set idx
    1
    %  encoding convertfrom -failindex idx utf-8 A\xC2B
    AÂB
    % set idx
    -1
    ```
    
    Both are invalid utf-8 byte sequences. In the first case, it detects the error, in the second case it does not.
    
    /Ashok
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "16. Commands A-H"
  14. title changed to:
    Inconsistent behavior with encoding convertfrom -failindex
    
  15. type changed to: "Bug"