Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-06-21
09:31 • Closed ticket [048dd20b41]: cesu-8 encoding fails on \u80 plus 7 other chang... artifact: b3ecd1bc6b user: jan.nijtmans
09:29
Fix [048dd20b4171c8da]: cesu-8 encoding fails on \u80 check-in: 0c93c6f969 user: jan.nijtmans tags: core-8-branch
2021-06-19
23:32 • Ticket [048dd20b41] cesu-8 encoding fails on \u80 status still Open with 4 o... artifact: 0f29ce3ab4 user: jan.nijtmans
13:25 • Ticket [048dd20b41]: 3 changes artifact: 41d704fd59 user: pooryorick
09:05 • Ticket [048dd20b41]: 3 changes artifact: 82985fb63d user: pooryorick
09:05 • Ticket [048dd20b41]: 3 changes artifact: c5c809e7bd user: pooryorick
09:02 • New ticket [048dd20b41]. artifact: 5465a3192f user: pooryorick

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.