.
D 2015-11-06T22:14:19.880
J assignee aku
J closer nobody
J comment Hi,\r\n\r\nI've\sincorporated\sthe\sTcl\sregex\scode\sin\smy\sproject\r\n(www.swi-prolog.org)\sand\sfound\sa\sbug\sin\sthe\sregex\r\ncode.\s\sI\sguess\sthat\swill\salso\saffect\sTcl.\s\sI\sdidn't\r\nfind\sa\spatch\syet,\sI\shave\ssome\strouble\ssorting\sout\sthe\r\ninternals.\r\n\r\nIn\smy\sapp\sit\sshows\sas\r\n\r\n?-send(regex('foo|bar'),\smatch,\s'xxx\sbar').\r\n\r\nwhich\ssucceeds!\r\n\r\nMatch\s(instead\sof\ssearch)\ssets\sREG_BOSONLY,\sbut\sthis\scauses\r\nthe\sregex\sto\sbe\sread\sas\s\\Afoo|bar\srather\sthan\s\\A(foo|bar).\r\n\r\nUsing\sfoo|\\Abar,\sall\sworks\sfine\sas\swell.\r\n\r\n\s\s\s\s\s\sCheers\s---\sJan
J icomment The\scomplained-of\sbehavior\scertainly\sseems\sto\sbe\sa\sbug,\sbut\sI\sdo\snot\slike\sJan's\sproposed\sfix\smuch\s---\sit's\staking\san\simplementation\sthat\swas\sa\skluge\sto\sstart\swith\sand\smaking\sit\seven\smore\smessy.\s\sI\ssuggest\sthe\sattached\sinstead,\swhich\sworks\sby\snot\sgenerating\sarcs\scorresponding\sto\sthe\sforbidden\scases\sto\sbegin\swith.\r\n\r\nAnother\sidea\sworth\sconsidering\sis\sto\sremove\sREG_BOSONLY\saltogether\s...\sdoes\sanyone\sknow\sif\sExpect\sstill\suses\sit?
J login tgl
J mimetype text/plain
J severity Minor
K 1178541fffffffffffffffffffffffffffffffff
U tgl
Z ec387fba65c167b8b678b1a79e5cd1b7