Overview
| Artifact ID: | 7544ec5f273ab3a5b8087938993a77de7a417203 |
|---|---|
| Ticket: | 624919ffffffffffffffffffffffffffffffffff
Tcl_AppendToObj docs confusing |
| User & Date: | dkf on 2003-02-06 21:03:59 |
Changes
- icomment:
Logged In: YES user_id=79902 Eh? I think there's confusion abounding here. I think that all the handling of the 'identity' encoding is strange from top to bottom, and that it should be replaced with other things. There should be a way to go from UTF8strings to bytearrays such that the single character string \u0000 gets mapped to a two byte bytearray containing \xc0 and \x80. This would fit quite nicely with the [binary] command IMO. There should also be a way to go the other direction, though as this would have the ability to produce strings that are not well-formed UTF8, it would have to be a testing-only command, and hence part of the tcltest executable only. But we know how to do that (and do so already for testing other features of the core.) That would be sufficient for testing all oddities in the core that we come across, and it would have the advantage of making the bytes member of every Tcl_Obj be defined to contain a UTF8 string at all times (when not NULL and you're not testing, of course.) Such assumptions, which are really already there anyway, would make life easier in other places (as outlined in this Bug.) IOW, Jeff I think you've misunderstood. :^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"