Skip to content
Tcl Source Code View Ticket
Login

View Ticket

cesu-8 encoding fails on \u80

Closed / Fixed048dd20b4171c8da89d94a126e3f98c83178a33dCreated 5 years agoUpdated 5 years ago
Descriptionwiki2021-06-19 09:02:13
In the following script, a character is unsuccessfully converted to cesu-8 and back again:

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]

}

output:

fail 128 224
pooryorick Ticket [048dd20b41]: 3 changes [History diff]2021-06-19 09:05:30
pooryorick Ticket [048dd20b41]: 3 changes [History diff]2021-06-19 09:05:46
pooryorick Ticket [048dd20b41]: 3 changes [History diff]2021-06-19 13:25:50
jan.nijtmans Ticket [048dd20b41]: 4 changes [History diff]2021-06-19 23:32:14
jan.nijtmanswiki2021-06-21 09:31:10

Fixed [here]

Thanks for the report!

Log in (anonymous is fine) to add a comment.