Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 736d574214f2ca367bfd5cb36346760c84f42b24aa2317c9fd9adc7a222d87e8
Ticket: 9f9c828fde97a4c8a7a528dec3482ecce0838419
trim issue with chinese characters
User & Date: oehhar on 2024-11-06 11:19:43
Changes

  1. icomment:
    Yes, console is always an issue.
    So, lets make the example use only 8859-1 codepage:
    
    <verbatim>
    set comment "\u6d4b\u8bd5\u5305\u88c5"
    set comment2 [string trim $comment]
    if {$comment eq $comment2} {puts identical}
    </verbatim>
    
    If this does not output "identical", it is the trim function, otherwise, it is something else.
    
    And please provide:
    <verbatim>
    info patchlevel
    </verbatim>
    
    Thanks for all,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"