Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-04-27
12:30 • Closed ticket [45ca2338cd]: string tolower inconsistency plus 7 other chan... artifact: c3f55ec661 user: dgp
12:29
[45ca2338cd] Revise the [string to*] machinery for custom builds. check-in: 6172611cc2 user: dgp tags: core-8-6-branch
01:30 • Ticket [45ca2338cd] string tolower inconsistency status still Open with 3 ... artifact: 5c75953d29 user: dgp
2020-04-26
23:06 • New ticket [45ca2338cd]. artifact: 327e301fb5 user: dgp

[string tolower] inconsistency

Closed / Fixed45ca2338cdaa2c183e4abe9d2b2aca11146a4643Created 7 years agoUpdated 7 years ago
Descriptionplain2020-04-26 23:06:00
In a default build of 8.6:

% set s \uD824
???
% scan $s [string repeat %c [string length $s]]
55332
% scan [string tolower $s] [string repeat %c [string length $s]]
55332

In the custom build with TCL_UTF_MAX > 3, we get

% set s \uD824
???
% scan $s [string repeat %c [string length $s]]
55332
% scan [string tolower $s] [string repeat %c [string length $s]]
240
Referenced by1
dgpplain2020-04-27 01:30:33
Bugfix branch contains a correction for the reported problem and related tests.

Still need another pass to see if this created new problems too, and to craft
some more tests.
dgpplain2020-04-27 12:30:22
fixed
Log in (anonymous is fine) to add a comment.