Overview
| Artifact ID: | 4c90bb8f44cb53a995656e73a18183b4686034d52c47e62c9d2966277683fce0 |
|---|---|
| Ticket: | d10d6ddf295864389294b966163a23a58b9a1e72
UTF-16 Unicode escapes should continue to work in version 9.0 |
| User & Date: | bhaible on 2024-08-12 11:02:53 |
Changes
- icomment:
> an result of 8.x not fully supporting non-BMP characters Nope, Tcl 8.6 was supporting non-BMP characters just like Java does for 29 years. Namely, character literals are supported via \uxxxx\uyyyy escape sequences, and when output to an UTF-8 stream, the non-BMP characters (2 storage units) are converted to UTF-8. And yes, for programs that look at the storage units inside strings it makes a difference whether a character is in the BMP (1 unit) or outside the BMP (2 units). > I don't think it advisable to break this consistency. You are arguing with the internal representation of strings. I am arguing with the external representation, how string literals are represented in files. There does NOT need to be a 1:1 correspondence. Also I am arguing with a migration issue. You are saying "applications must move to 9.0" but are not giving enough thought, how to make migration as easy as possible for your users. > use UTF-8 and specify the `-encoding utf-8` option instead of being dependent on locales. My software (GNU gettext) writes the message catalogs, that contain string literals, but does not control or influence how the applications are run. Therefore your advice is not applicable.
- login: "bhaible"
- mimetype: "text/plain"