Skip to content
Tcl Source Code History Of Ticket b3fbd9a6e0
Login

History Of Ticket b3fbd9a6e0

Artifacts Associated With Ticket b3fbd9a6e0

  1. Ticket change [afb3da897f] (rid 250185) by chelmuth on 2026-01-06 07:18:10:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      The following code produces invalid UTF-8 strings and causes puts to abort.
      
      set padded_unicode_22c5 " \U22c5 "
      set trimmed_unicode_22c5 [string trim $padded_unicode_22c5]
      
      puts "padded_unicode_22c5: '$padded_unicode_22c5'"
      puts "trimmed_unicode_22c5: '$trimmed_unicode_22c5'"
      
      The same happens for U+2020.
      
      Most interestingly the characters are represented by UTF-8 sequences like follows.
      
      U+22C5 0xE2 0x87 0x85
      U+2020 0xE2 0x80 0xA0
      
      The first sequence contains 0x85 and the second 0x80.
      U+0085 (0xC2 0x85) is <Next Line> (NEL).
      U+0080 (0xC2 0x80) is <Padding Character> (PAD).
      Both should be trimmed I expect but are not in the string above (0xC2 is missing).
      
      I also tested Tcl 9.0.3, which works like a charm.
      
    5. foundin initialized to: "8.6.17"
    6. is_private initialized to: "0"
    7. login: "chelmuth"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "7313b123087982208eac04b14054e0c43344d79f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "chelmuth"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to:
      string trim generates invalid utf-8 for some codepoints
      
    16. type initialized to: "Bug"
  2. Add attachment "tclUtil.diff" [e2f1a78e88] (rid 250200) by chelmuth on 2026-01-06 11:45:36.

  3. Ticket change [c5bbbde7bf] (rid 251848) by jan.nijtmans on 2026-03-02 20:06:09:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461102.3376082638"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [94529656ae2d2d88|here]
      
      Thanks for the report and the patch.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"