<i>handling out of range UCS4 values</i> status still Open with 3 other changes
by
.
D 2020-04-29T16:17:05.309
J icomment Whenever\sTcl\saccept\schars\s>\s\\xFFFF,\sthere's\sa\sUNICODE_OUT_OF_RANGE\smacro\swhich\schecks\sfor\spossible\soverflow.\sSo\sthere's\sno\spossibility\sfor\sinvalid\slookup\stable\saccess.\r\n\r\nFor\sTcl\s8.5/8.6,\sthe\sinput\s'integer'\sis\smasked\susing\s16\sbits.\sThis\sis\slogical,\ssince\sthose\sfunctions\sare\sonly\sdefined\saccepting\san\sTcl_UniChar.\sIn\sTcl\s8.7\sthat\schanges.\sFor\sreasons\sof\sextensability,\sthe\sinput\svalues\sare\snow\smasked\susing\s21\sbits.\sThis\sallows\sbits\s22\sup\sto\s31\sto\sused\sfor\sother\spurposes.\sFor\sexample\sTcl_UniCharToUpper()\scould\sbecome\slocale-dependant:\sUppercase\s'i'\sin\sturkish\sis\s"İ",\snot\s"I".\s\s\sThe\slowercase\sform\sof\s"I"\sis\s"ı",\snot\s"i".\s\sSo\sflags\scould\sbe\sused\sin\sTcl_UniCharToUpper()/Tcl_UniCharToLower()\sto\sindicate\swhether\swe\swant\sthe\sTurkish\svariant\sor\sthe\srest-of-the-world\svariant.\r\n\r\nSo,\sI\sdon't\sthink\sthere's\sa\sbug\shere.
J login jan.nijtmans
J mimetype text/plain
K 69634d51fb74551bb4dfcd0b4e9097679e8f4a05
U jan.nijtmans
Z 3703f21b700b3e3f08ead2c876beb58e