Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-05-22
10:44 • Closed ticket [c2dc50ee31]: Tcl_FSEvalFileEx() does not use strict encoding prof... artifact: 16969e2335 user: apnadkarni
2023-04-28
04:10 • Ticket [c2dc50ee31]: 3 changes artifact: b449821e80 user: pooryorick
00:49 • Ticket [c2dc50ee31]: 3 changes artifact: 1563a4f73b user: pointsman
00:13 • Ticket [c2dc50ee31]: 3 changes artifact: 21139aec4b user: apnadkarni
2023-04-27
21:11 • New ticket [c2dc50ee31]. artifact: 7d9bb7c74e user: pooryorick

Tcl_FSEvalFileEx() does not use strict encoding profile

Closed / Fixedc2dc50ee315da1cbd285b55aef5578275c921f83Created 4 years agoUpdated 195 days ago
Descriptionwiki2023-04-27 21:11:35
Tcl_FSEvalFileEx() does not use the strict encoding profile. It should because a script that is not properly encoded should fail early.
apnadkarniplain2023-04-28 00:13:31
I agree that strict profiles should be used for reading scripts.

However, in my opinion this is not a bug in the same sense that octal was not a a bug but by intent. Correcting this is a feature change that requires a TIP.
pointsmanplain2023-04-28 00:49:41
While I agree that this needs coverage by a TIP this ticket could as well be the discussion bed for prior TIP status.

I also agree that strict profiles should be used for reading scripts. Is there somebody out there thinking this should not be the case. I'd love to read the reasoning in your words.
pooryorickwiki2023-04-28 04:10:43

It's good to have a ticket open for something which might not be covered by a current TIP so that it doesn't get forgotten. This can always be closed once an applicable TIP that covers it appears.

apnadkarniplain2026-05-22 10:44:57
Closing (as of TIP 657 I believe).

```
% source -encoding cp1252 e.tcl
èéê
% source e.tcl
couldn't read file "e.tcl": invalid or incomplete multibyte or wide character
```
Log in (anonymous is fine) to add a comment.