Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41d704fd59887c9d4411bc3032ac069988b89f4cff6eba8ed4e89f64d8d1b5a4
Ticket: 048dd20b4171c8da89d94a126e3f98c83178a33d
cesu-8 encoding fails on \u80
User & Date: pooryorick on 2021-06-19 13:25:50
Changes

  1. comment changed to:
    In the following script, a character is unsuccessfully converted to cesu-8 and
    back again:
    
    <code><verbatim>
    set char \u80
    set encoded [encoding convertto cesu-8 $char]
    set decoded [encoding convertfrom cesu-8 $encoded]
    if {$decoded ne $char} {
    	scan $char %c ord1
    	scan $decoded %c ord2
    	puts [list fail $ord1 $ord2]
    
    }
    </verbatim></code>
    
    <b>output:</b>
    
    <verbatim>
    fail 128 224
    </verbatim>
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"