Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-01-13
14:50 • Closed ticket [0b9332722a]: Support utf-8 on Windows console plus 7 other ch... artifact: 0c2589ffe4 user: jan.nijtmans
10:01
Fix [0b9332722a]: Support utf-8 on Windows console check-in: faf4fde866 user: jan.nijtmans tags: core-8-6-branch
06:43 • Add attachment windows-utf-8-feature.png to ticket [0b9332722ad7a3c1|0b... artifact: fa7511160d user: anonymous
06:40 • Ticket [0b9332722a] Support utf-8 on Windows console status still Open with ... artifact: 189684aee8 user: anonymous
2020-01-11
21:20 • Add attachment 0001-Support-utf-8-on-Windows-console.patch to ticket [0... artifact: 8ed6f55d94 user: anonymous
21:18 • New ticket [0b9332722a] Support utf-8 on Windows console. artifact: 7d172c50b3 user: anonymous

Support utf-8 on Windows console

Closed / Fixed0b9332722ad7a3c1aa4d15902080333db8dda294Created 7 years agoUpdated 7 years ago
Descriptionwiki2020-01-11 21:18:07
When UTF-8 feature is enabled in Windows, the console reports code page 65001. This is an official code page value with constant CP_UTF8, but this code page is not recognised by Tcl. Tcl tries to initialize encoding cp65001, but this fails, so iso8859-1 is used instead. Easiest fix is to initialize the encoding to utf-8 instead of cp65001.
Referenced by1
anonymous Ticket [0b9332722a]: 3 changes [History diff]2020-01-13 06:40:08
jan.nijtmansplain2020-01-13 14:50:53
Thanks for the report and the patch! Looks fully reasonable.

Applied now to core-8-6-branch and up.
Log in (anonymous is fine) to add a comment.