Skip to content
Tcl Source Code Artifact [09caeab5e7]
Login

Artifact [09caeab5e7]

Artifact 09caeab5e747d786bfdf64799ca5bb4d3087e894dcbb55798bba274584c8fb9a:

Ticket change [09caeab5e7] - Ticket [1ecea01196a19b73|1ecea01196] <i>string is lower, upper not consistent with Unicode database and other languages</i> status still Open with 3 other changes by apnadkarni on 2025-07-24 05:13:03.
D 2025-07-24T05:13:03.171
J icomment There\sis\sanother\ssemantic\sdifference\seven\sfor\sclassification\sthat\sI\sdid\snot\srealize\swhen\sthe\sstring\scontains\smultiple\scharacters.\sConsider\sTcl's\r\n\r\n```\r\n%\sstring\sis\slower\s2a\r\n0\r\n```\r\n\r\nwith\sPython's\r\n\r\n```\r\n>>>\s"2a".islower()\r\nTrue\r\n```\r\n\r\nPython\ssubscribes\sto\sthe\sUnicode\sdefinition\sof\s[isLowercase](https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G47728)\swhere\sa\sstring\sis\slower\scase\sif\seach\scharacter\sin\sthe\sstring\smaps\sto\sitself\sunder\stolower\soperation.\sThus\s`2`\spasses\sthe\stest.\sTcl\son\sthe\sother\shand\suses\sa\sdefinition\sthat\seach\scharacter\sin\sthe\sstring\smust\sbe\sclassified\sas\slowercase\swhich\sis\sfalse\sfor\s`2`.\r\n\r\nAside\sfrom\sthe\sfact\sthat\ssome\sclarity\sin\sthe\sTcl\smanpage\swould\sbe\shelpful,\s**I\sdon't\sconsider\sthis\sa\sbug\sin\sTcl**\sbut\ssimply\sdifferent\sdefined\ssemantics.\sI\swould\snot\schange\sTcl's\sbehaviour\sin\sthis\sregard\sbut\sinstead\s(**only\sif\sdeemed\suseful**)\sanalogous\scommands\sreflecting\sthe\sUnicode\sstandard\sdefinitions\sshould\sbe\sadded\sto\sthe\s`unicode`\scommand.\sThat\swould\sof\scourse\srequire\sa\sTIP\s(not\s726,\sbecause\sI\sdo\snot\swant\sto\sconflate\sthis\sissue\swith\snormalization).\r\n\r\n(Note\sthis\sissue\sis\sorthogonal\sto\sTcl's\slowercase\sclassification\sof\sindividual\scode\spoints\slike\s`\\u00aa`\swhich\swas\sthe\soriginal\sticket\sI\slogged.\sEven\sif\sthat\swas\s"fixed"\sit\swould\snot\saffect\sthis\sdifference)
J login apnadkarni
J mimetype text/x-markdown
K 1ecea01196a19b73226d5c822e5fdaf22111aa54
U apnadkarni
Z 7f8086ba917b9a4e961723e62342d5a0