Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-10-31
15:10 • Closed ticket [cef426ff2c]: Encoding UTF-32 missing plus 6 other changes artifact: a0632a4f9b user: jan.nijtmans
2021-10-15
14:48
RFE [cef426ff2c]: Encoding UTF-32 missing check-in: 2c7852b42b user: jan.nijtmans tags: core-8-branch
2021-10-13
18:44 • Add attachment ECI35_utf32le.gif to ticket [cef426ff2ceea383|cef426ff2c... artifact: 752fbca95a user: oehhar
18:42 • Ticket [cef426ff2c] Encoding UTF-32 missing status still Open with 4 other c... artifact: 6ec5b95f3c user: oehhar
13:59 • Ticket [cef426ff2c]: 4 changes artifact: 08e2113962 user: oehhar
13:43 • Ticket [cef426ff2c]: 3 changes artifact: b532833e41 user: jan.nijtmans
13:33
First shot at [cef426ff2c]: Encoding UTF-32 missing check-in: 23f539bd7c user: jan.nijtmans tags: rfe-cef426ff2c
13:32 • Ticket [cef426ff2c] Encoding UTF-32 missing status still Open with 4 other c... artifact: a3b7733bc1 user: jan.nijtmans
11:32 • Add attachment eci13_iso8859-11.gif to ticket [cef426ff2ceea383|cef426f... artifact: 1a9fe38167 user: oehhar
11:30 • Ticket [cef426ff2c] Encoding UTF-32 missing status still Open with 4 other c... artifact: 45b435b284 user: oehhar
10:54 • Ticket [cef426ff2c]: 5 changes artifact: e97942e753 user: jan.nijtmans
09:28 • New ticket [cef426ff2c]. artifact: 4cc92b7754 user: oehhar

Encoding UTF-32 missing

Closed / Fixedcef426ff2ceea3833a745335e5de798cadc354c6Created 5 years agoUpdated 5 years ago
Descriptionwiki2021-10-13 09:28:04
Dear TCL Team,

for me, the encoding "ISO8859-11" for Thai encoding is missing.

It is used in bar coding and it may be helpful, if it would be available.

Thank you, Harald

PS.: i am very happy, that TIP 547 has replaced the "unicode" encoding by clearly defined UTF-16LE, UTF16BE. May I ask why UTF-32LE and UTF32BE was not defined in this TIP?

Personal note: well, I open a lot of issues not cleaning anything up, I am sorry for that. Nevertheless, even identifying an isue is a good step.

Referenced by2
jan.nijtmanswiki2021-10-13 10:54:41

How about [0c4485f7357885ed]? ;-) That was about 4 months ago, will be in 8.6.12

About UTF-32, that could be added as well, but there are places in Tcl code where the assumption is made that there are only 1-byte and 2-byte encodings, e.g. here: https://core.tcl-lang.org/tcl/file?udc=1&ln=1062-1066&ci=803b50919336549c&name=generic%2FtclEncoding.c. All places where encoding->nullsize is used must be adapted too, accepting '4' as possible value.

I changed the title, so we can add UTF-32 encodings later under this ticket.

oehharwiki2021-10-13 11:30:14

Dear Jan,

thank you for the hint about the recently added 8859-11. I tested it. It works great! I try to attach a photo for your pleasure.

About UTF-32, I think, it is reasonable to add this. Specially, because that is one flavor of the current "unicode" encoding.

Thank you for the light-speed action, Harald

P.S.: Another important issue is gb18030 of ticket [367bfdcf89].

jan.nijtmans Ticket [cef426ff2c]: 4 changes [History diff]2021-10-13 13:32:31
jan.nijtmanswiki2021-10-13 13:43:52

First shot here: [23f539bd7cbedf7c]. I think it's complete, but I didn't thorougly test it yet.

oehharwiki2021-10-13 13:59:01

Thank you, great ! Give me some time to test.

Thanks, Harald

oehharwiki2021-10-13 18:42:55

Dear Jan,

I have made tests with utf-32le and utf-32be. They both work like a charm.

Great work, thank you ! Harald

P.S. Again, a pleasure photo is attached.

jan.nijtmanswiki2021-10-31 15:10:41

Fixed [here]. Will be in the next Tcl 8.7 alpha release

Log in (anonymous is fine) to add a comment.

Attachments: