Skip to content
Tcl Source Code Artifact [b5acf31629]
Login

Artifact [b5acf31629]

Artifact b5acf3162916f5835f86a3520a09e52bb2128f875a738f1630294023e9d6c7ce:

Ticket change [b5acf31629] - New ticket [4ed788c618b36e12|4ed788c618] <i>regexp \U not fully implemented - unclear in docs</i>. by juliannoble2 on 2023-11-18 19:30:45.
D 2023-11-18T19:30:45.321
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment regexp\sof\s\\Ustuvwxyz\sis\smentioned\sin\sthe\sre_syntax\sdocs\sbelow\s\\uwxyz\sbut\sbehaves\squite\sdifferently.\r\n\r\n\\u\scan\sbe\sused\sin\sbraced\sexpressions\s-\swhereas\s\\U\sonly\sseems\sto\sfunction\sproperly\sin\sunbraced\sregexes\swhere\sthe\s\\U\sentries\sbecome\sliteral\scharacters.\r\n\r\nIt\sis\sunclear\swhether\sthis\sis\sintentional\sor\sawaiting\simplementation\sin\sthe\score\sfor\sregexp.\sThe\sdocs\sfor\s\\U\smention\s'reserved\sfor\sa\sUnicode\sextension\sup\sto\s21\sbits'.\sThe\swording\shere\scould\sbe\sclarified\sif\sthat\smeans\sit\sis\snot\sintended\sto\sfunction\sout\sof\sthe\sbox.\r\n\r\nCharacter\sranges\sfor\sbraced\s\\U\sregexes\swork\sin\sthe\srange\sup\sto\sFFFF\swhen\sthe\supper\sbound\sis\sexpressed\sas\s\\U0000FFFF\sor\sequivalent,\sbut\sonly\sup\sto\sFFFD\sif\sthe\supper\sbound\sis\sexpressed\sas\s\\U0010FFFF\r\n\r\n(I\snote\sthat\sFFFE\sand\sFFFF\sare\s'noncharacters'\s-\sbut\sthere\sare\s32\sother\snoncharacters\sin\sthe\sBMP\sthat\saren't\sexcluded.\sFor\sbest\sutility,\sI\swouldn't\sexpect\sany\sto\sbe\sexcluded\sin\sthis\scontext\s-\sbut\sif\sthe\swording\sin\sdocs\srefers\sto\s'characters'\srather\sthan\scodepoints\sor\swhatever\sterminology\sis\sappropriate\shere,\sand\sit\sreally\sis\sthe\sintention\sto\sexclude\snoncharacters;\sthen\sthat's\sanother\spoint\sthat\smay\sneed\sexplanation)\r\n\r\n90b1rc\r\n\r\n\s\s%\sregexp\s-all\s-inline\s-indices\s{[\\U00000080-\\U0000FFFF]}\sX\\UFFFEY\r\n\s\s{1\s1}\r\n\s\s%\sregexp\s-all\s-inline\s-indices\s{[\\U00000080-\\U0010FFFF]}\sX\\UFFFEY\r\n\s\s%\r\n\r\nHigher\stests\scan\sbe\sdone\swith\ssubstituted\sregexes\srather\sthan\sbraced\sones\s-\sbut\sthat\sis\smuch\sless\sconvenient\sas\sregexes\sget\smore\scomplex,\sand\sdifferent\senough\sfrom\sthe\s\\u\sbehaviour\sthat\sit\smay\swarrant\smore\sexplicit\sdocumentation\sif\sit\sisn't\sintended\sto\soperate\ssimilarly\swithout\ssome\ssort\sof\sextra\spackage.\r\n\r\n90b1rc\r\n\r\n\s\s%\sregexp\s-all\s-inline\s-indices\s"\\[\\U00000080-\\U0010FFFF\\]"\sX\\U1FFFFY\r\n\s\s{1\s1}\r\n\r\n\r\nThis\sisn't\sspecific\sto\sthe\s90-b1\srelease\scandidate\s-\sbut\sI\snotice\sthat\sthere\sare\sat\sleast\s3\sdifferent\sbehaviours\sfor\scertain\s\\U\sregexes\sin\srecent\syears,\swhich\sI\sguess\sisn't\ssurprising\sgiven\sthe\scomplex\swork\sbeing\sdone\sto\ssupport\sunicode\sin\sTcl,\sbut\sit\sdoes\sunderscore\sa\sneed\sto\shave\sthe\sdocs\sreflect\sintended\sbehaviour.\s\s\s\r\n\r\n8.6.12\r\n\r\n\s\s%regexp\s-all\s-inline\s-indices\s{[\\U80-\\U0000FFFF]}\sX\\U0001FFFFY\r\n\s\s{1\s1}\r\n\r\nbawt\s8.7a5\r\n\r\n\s\s%regexp\s-all\s-inline\s-indices\s{[\\U80-\\U0000FFFF]}\sX\\U0001FFFFY\r\n\s\s{1\s1}\s{2\s2}\r\n\r\n8.7a6\s(+)\r\n\r\n\s\s%\sregexp\s-all\s-inline\s-indices\s{[\\U80-\\U0000FFFF]}\sX\\U0001FFFFY\r\n\s\s%
J foundin 9-0-b1-rc
J is_private 0
J login juliannoble2
J priority 5\sMedium
J private_contact 957fdfcd8744611e3fe1f4896c7538b1d9bf47b2
J resolution None
J severity Important
J status Open
J submitter juliannoble2
J subsystem 43.\sRegexp
J title regexp\s\\U\snot\sfully\simplemented\s-\sunclear\sin\sdocs
J type Bug
K 4ed788c618b36e1247bd276c985c750c3b2267bd
U juliannoble2
Z 98dd60b5ca0dc6a0d34e18e0c433743a