Tk Source Code

Artifact [ccba6537]
Login

Artifact ccba653749a014cbc90b9241f89cc8def3b24febdea078aedae41049f70ac2e9:

Ticket change [ccba6537] - Ticket [b9478644] clipboard-4.1, -4.2, -4.4 fail on macOS status still Open with 5 other changes by fvogel 2018-07-08 20:20:14.
D 2018-07-08T20:20:14.738
J assignee fvogel
J icomment All\sthese\sthree\stests\sfail\sbecause\sthe\slast\sstatement\s<b>"clipboard\sget"</b>\sreturns\san\sempty\sstring\sinstead\sof\sthe\sexpected\serror\s<b>"CLIPBOARD\sselection\sdoesn't\sexist\sor\sform\s"STRING"\snot\sdefined"</b>.\r\n\r\nAn\sinstrumented\sinteractive\stest\ssession\sprovides\ssome\sinsight:\r\n\r\n<verbatim>\r\n%\sclipboard\sclear\r\nTkClipInit:\sclipboardActive\sset\sto\sFALSE\r\nTk_ClipboardClear:\sclipboardActive\sis\sFALSE\r\nXSetSelectionOwner:\sclipboardActive\sis\sFALSE,\schanging\sowner\r\nTk_ClipboardClear:\sclipboardActive\sset\sto\sTRUE\r\n%\sclipboard\sappend\sTest\r\nTk_ClipboardAppend:\sclipboardActive\sis\sTRUE\r\n%\sselection\sclear\s-selection\sCLIPBOARD\r\nXSetSelectionOwner:\sclipboardActive\sis\sTRUE\r\nClipboardLostSel:\sclipboardActive\sset\sto\sFALSE\r\n%\sputs\s"!![clipboard\sget]!!"\r\nTk_GetSelection:\sentering\r\nTk_GetSelection:\sselection\sowned\sby\ssome\sother\sprocess\r\nTkSelGetSelection:\sentering\r\ntkProvidePasteboard:\sclipboardActive\sis\sFALSE\r\nTkSelGetSelection:\sbefore\scalling\sproc,\sstring\sis\s!!!!\r\n!!!!\r\n%\r\n</verbatim>\r\n\r\n<i>(Note\sthat\stesting\sthis\sclipboard\sfeature\sis\sprone\sto\serrors:\syou\smust\seither\srun\sthe\stest\sfrom\sthe\stest\ssuite,\sor\stype\severything\sby\shand\s(as\sopposed\sto\scopy/pasting)\sotherwise\sthe\sclipboard\ssoon\sgets\smangled\sby\sthe\stest\sof\sthe\spasted\scommands).</i>\r\n\r\nFrom\sthe\sabove\slog\sI\sthink\sthat\stesting\sdispPtr->clipboardActive\sis\smissing\sin\sthe\smacOS\sversion\sof\sTkSelGetSelection,\swhich\sis\stherefore\smy\sfix\sproposal\s[b4c5f163].\r\n\r\nWith\sthis\spatch\sclipboard-4.[124]\sno\slonger\sfail\son\smacOS.
J login fvogel
J mimetype text/x-fossil-wiki
J resolution Fixed
K b947864419c55e7278b87fcc9d701a914cb7914a
U fvogel
Z b9083b4bc725d352929d3acaddc18a94