Skip to content
Tcl Source Code Artifact [8ee28d9cc1]
Login

Artifact [8ee28d9cc1]

Artifact 8ee28d9cc1e131d903940d35ab20ce8c4b19e0de22a07272a9b45ed3127bc424:

Ticket change [8ee28d9cc1] - Ticket [e87000d8425ab86a|e87000d842] <i>crash for &quot;fconfigure stdout&quot; in Win32</i> status still Closed with 5 other changes by chw on 2020-08-12 11:39:27.
D 2020-08-12T11:39:27.028
J closedate 2459073.98572949
J closer chw
J icomment I\sthink\sthe\sproblem\sis\ssomewhat\sdifferent.\sIn\sthe\sWin32\sconsole\scase\r\nit\sstarts\swith\sthe\s(wrong)\sassumption,\sthat\sthe\swindow\ssize\scan\sbe\r\ndetermined\son\sstdin\s(the\sinput\shandle\sfrom\sGetStandardHandle(...)).\r\nHowever,\sthat\sinformation\scan\sonly\sbe\sread\sout\sfrom\sa\sconsole\shandle\r\nwith\sa\sscreen\sbuffer,\si.e\sstdout\sif\sobtained\sfrom\sGetStandardHandle().\r\n\r\nA\sproof\sof\sconcept\swhich\sproperly\ssupports\s-winsize\sis\sin\sthe\sAndroWish\r\nrepo,\ssee\s\r\n\r\nhttps://www.androwish.org/home/file?name=jni/tcl/win/tclWinConsole.c&ci=tip\r\n\r\nRegarding\sthe\scrash:\sif\syou\slook\sat\sthe\svarious\simplementations\sof\r\nGetOptionsProc()\smost\sset\sa\svalid\sflag\seven\sin\sthe\soptionName\s=\sNULL\r\ncase\sand\sreturn\searlier\sthan\sTcl_BadChannelOption().\sOthers\sdeal\swith\r\nlen\s>\s0\s(in\scase\soptionName\sis\sNULL,\slen\sis\s0)\sand\sif\slen\sis\szero\sdon't\r\ncall\sTcl_BadChannelOption()\sat\sall.
J login chw
J mimetype text/plain
K e87000d8425ab86af682dd8195b9d20826974ba8
U chw
Z 42cf7b73413c753e8f0e6f96bc29c5db