Overview
| Artifact ID: | 6cfd061a23c9b36493fb9b7c667be12e0b415c19 |
|---|---|
| Ticket: | 578030ffffffffffffffffffffffffffffffffff
Tcl_UniChar is only 16 bits |
| User & Date: | dkf on 2002-07-09 16:19:39 |
Changes
- icomment:
Logged In: YES user_id=79902 IIRC, recent full Unicode standards mandate 32-bit characters so that virtually every character ever invented by mankind can be represented (though you can bet that someone somewhere has a plan to go to 64-bit chars just to make sure that extra-terrestrial languages can be incorporated into Unicode too!) Alas, doing this would blow the core up even larger than it is now, because there are a lot of places where we need fixed-width strings for performance reasons (e.g. [string index] on UTF-8 is an O(n) operation.) I somehow doubt that the default config of Tcl is going to change from 16-bit chars in the near future; the pay-off is just not good enough at the moment. However, I don't know if there's anything much in the core right now (aside from the declarations in tcl.h) that assumes a particular character size; removing such assumptions is fine to make for easier porting to 32-bit chars if/when it becomes a real issue.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "1 Zero"
- username: "dkf"