<i>2-argument string toupper/tolower/totitle doesn't work as documented</i>.
by
.
D 2025-07-12T16:36:22.501
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment According\sto\sthe\sdocumentation:\r\n<pre>\r\nIf\sfirst\sis\sspecified,\sit\srefers\sto\sthe\sfirst\schar\sindex\sin\sthe\sstring\sto\sstart\smodifying\r\n</pre>\r\nThe\sdocumentation\sdoesn't\sspecify\swhat\shappens\sif\s_last_\sis\snot\sspecified,\sbut\sthis\ssuggests\sthat\smodification\sof\sthe\sstring\swill\sbe\sdone\suntil\sthe\send\s(just\sas\swhen\sneither\s_first_\sand\s_last_\sare\sspecified).\sThat's\snot\swhat\shappens:\r\n<pre>\r\n$\stclsh8.6\r\n%\sstring\stolower\sABC\s1\r\nAbC\r\n</pre>\r\nReading\sthe\sdocumentation,\sI\swould\sexpect\s"Abc"\sas\sthe\sanswer.\sSo,\seither\sthe\sdocumentation\sor\sthe\simplementation\sshould\schange.\r\n\r\nI'm\snot\s100%\ssure,\sbut\sI'm\sleaning\stowards\schanging\sthe\sdocumentation.
J is_private 0
J login jan.nijtmans
J priority 5\sMedium
J private_contact 0c50e5320704d174412e57b873d8932de15303e0
J resolution None
J severity Minor
J status Open
J submitter jan.nijtmans
J subsystem -\sNew\sBuiltin\sCommands
J title 2-argument\sstring\stoupper/tolower/totitle\sdoesn't\swork\sas\sdocumented
J type Bug
K 8cd74c5cd2e93ad82b6913847a08381977eaefc3
U jan.nijtmans
Z 3d9a70fd92c7bb60ac1b7a3bc1ea7b8e