Overview
| Artifact ID: | cea89172688330c7f1e2a6d5b42f7f9cf07ffe7d4c31943f32429a99c2f9c32c |
|---|---|
| Ticket: | 7f1162a8674cc65c9b72169818badc3186f97678
concatenation does not make usable surrogate pairs |
| User & Date: | jan.nijtmans on 2021-04-09 09:09:03 |
Changes
- icomment:
Analysis: Whenever a string starts with a continuation byte, or its first 3 bytes form the (illegal) byte sequence of a lower surrogate, appending this string to another one could lead to undesired side effects, as shown by these test cases. Proposed solution: Do a Unicode (Tcl_UniChar) append in this case. 3 test-cases already fixed this way, but there are more places in the code where this can happen. WIP. The challenge is to find all those places.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"