Overview
| Artifact ID: | f3efbb9079887e966167ad3c3fc84eccf0fa075b9e5e2e97d8b7e0227b454766 |
|---|---|
| Ticket: | 6978c01b652ac87cfc7913f5e534825f15824768
Channel encoding difference 8.6 <-> 9.0 |
| User & Date: | jan.nijtmans on 2022-09-11 22:07:03 |
Changes
- icomment:
The bug should now be fixed on both core-8-branch (only visible when compiling with -DTCL_NO_DEPRECATED) and trunk. Still, something needs to be said about the utf-8 encoding. The utf-8 encoding is special in that it can also read iso8859-1 and cp1252 without complaining on 'invalid utf-8'. For details, see TIP #587. Since in Tcl 9.0, the default encoding on Windows changed from cp1252 to utf-8, I'm afraid that there are many Tcl scripts around still encoded in either iso8859-1 or cp1252. If Tcl would use -strictencoding 1 by default in 9.0, those scripts will stop working in Tcl 9, all users would be forced to convert their scripts to proper utf-8 before they can do anything. I'm not prepared to take that risk. utf-8 is still not sufficiently common on Windows. However, TIP #633 can introduce a -strictencoding option, which is only functional for utf-8 (all other encodings are strict already). So, people who want to be strict can enable it, without causing a burden for other people. Anyway, since this bug is fixed now, it's out-of-the-way for TIP #633. And thank you for providing the testcases and your 'fix', which pointed me to the right direction. Hope this helps. Jan Nijtmans - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"