Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[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.