Overview
| Artifact ID: | 04830430468ef312bc3f789ec8bf76015fecc5ac |
|---|---|
| Ticket: | 624919ffffffffffffffffffffffffffffffffff
Tcl_AppendToObj docs confusing |
| User & Date: | dkf on 2002-11-16 19:33:11 |
Changes
- icomment:
Logged In: YES user_id=79902 [encoding convertfrom identity] doesn't fill me with glee I must admit. In fact, I'd be ever so much happier if it didn't exist. IMO, we should distinguish between the way that code-points are encoded as bytes, and the way that characters are mapped to code-points. In particular, [encoding] should be used to alter the mapping between characters and code-points (e.g. code-point 00A4 is the international currency symbol in UNICODE but is the euro symbol in ISO 8859-15). Where I get worried is when we start using it to muck around with the mapping to bytes; I'm of the opinion that the mapping of code-points to bytes should be (in the bytes-part of a Tcl_Obj, and consequently in Tcl_AppendToObj) based on that of UTF-8 (people can also use (possibly lossy) single-byte mappings via byte arrays and double-byte mappings via the string object type.) So what does this all mean? Well, it means that [encoding convertfrom identity] Must Die. There should not be any way to produce non-UTF8 bytes content (using the term broadly as a way of encoding code-points as bytes, and not providing those CPs with an interpretation.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"