<i>file type on Windows generates error for built-in file names like CON</i> status still Open with 3 other changes
by
.
D 2016-07-08T16:40:40.009
J icomment I\shave\sa\spatch\smostly\sworking\sexcept\sthat\sI’m\sundecided\sas\sto\swhat\sto\sdo\sabout\sthe\sstat\satime/mtime/ctime\sfields\ssince\safaik\sthese\sare\snot\smaintained\sby\sWindows\sfor\sspecial\sdevices\slike\sCON,\sPRN\setc..\sThe\scurrent\sdocumentation\sfor\s[file\satime/mtime]\ssays\san\serror\sis\sraised\sif\sthese\svalues\sare\snot\savailable.\sHowever,\sthere\sis\sno\sway\scurrently\sin\sthe\sTcl\simplementation\sto\ssignal\san\serror\sonly\sfor\sthese\scommands\swithout\serroring\son\s*any*\sstat\srelated\scall\stargeting\sthose\sdevices.\s\r\n\r\nI\scould\seither\r\n\r\n-\sReturn\s0\sin\sthe\sstat.st_atime/mtime\sfield\swhich\sis\ssomewhat\smisleading\sunless\swe\sspecifically\schange\sthe\sdocument\sas\ssuch,\sor\r\n-\sReturn\sspecial\svalue\s-1\s(or\seven\s0)\s*and*\smodify\sthe\s[file\satime/mtime]\simplementation\sto\sraise\san\serror\son\sthis\svalue,\sor\r\n-\sLeave\sthings\sas\sthey\sare\s(ie.\sAll\sstat\srelated\scalls\swill\serror\sout\son\sthese\sfiles\sthough\sopen\set\sal\swork)\r\n\r\nI\swould\sprefer\sthe\ssecond\sapproach\sexcept\sthat\sI’m\safraid\sthis\schange\smight\simpact\scurrently\sworking\scode\sthat\shappily\ssupplies\sand\saccepts\sthis\s“special”\svalue\sin\sthese\sfields\son\sother\splatforms.\r\n\r\nAnyone\shave\sopinions/suggestions?
J login apnadkarni
J mimetype text/plain
K ae61a67192e4a9ffea855790efc373ddb440926a
U apnadkarni
Z df9fb761614b3d3d430378531e1b470b