Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.