Skip to content
Tcl Source Code Artifact [c8efc59ba8]
Login

Artifact [c8efc59ba8]

Artifact c8efc59ba8d6291996a91c7f2f7ed4aec6ff08f7:

Ticket change [c8efc59ba8] - Ticket [412504ffffffffff|412504ffff] <i>fileevent readable translation mode auto</i> status still Open with 4 other changes by andreas_kupries on 2001-04-10 01:25:53.
D 2001-04-10T01:25:53
J icomment Logged\sIn:\sYES\s\nuser_id=75003\n\nAll\snew\sfiles\smentioned\sbelow\sare\spart\sof\sthe\suploaded\narchive\s"fet-notes.tar.gz".\n\nWhen\strying\sout\sthe\sexample\sI\snoted\sthat\sfor\sme\n"fileeventthing-sh"\sdid\s_not_\sgenerate\slines\shaving\s\\r\s(CR)\nas\sline\sseparator.\sSee\sfile\s"shout"\s(SHell\sOUT)\sfor\san\nexample,\slooked\snot\swith\san\seditor,\sbut\s'od\s-c'\sto\sget\sa\nunimpaired\slook\sinto\sthe\sfile.\n\nBecause\sof\sthis\sI\swrote\s"numbergen",\sa\stcl\sscript\sdoing\sthe\nsame.\sIts\soutput\sis\s"shut.ng"\sand\sdoes\scontain\sthe\scorrect\nline\sseparators,\si.e.\sCR\s(side\snote:\sMy\semacs\swent\sinto\sMac\nsubmode!\swhen\sdisplaying\sthe\sfile).\n\nThe\sscript\s"fet"\sis\s"fileeventthing-tclsh"\smodified\sto\suse\n"numbergen"\sfor\sthe\sspawned\scommand\spipe.\sIt\swas\salso\nmodified\sto\sdisplay\sthe\stimes\sthe\sfileevent\swas\sfired\sbefore\nprinting\sthe\sreceived\sline.\n\nNow\stesting\sthe\sinteraction\sall\slines\scame\sin\s1-second\nintervals,\sincluding\sthe\sline\sfor\snumber\s10.\sAfter\sthat\sline\nwas\sa\s21-second\swait\sfor\sEOF,\sas\sexpected.\n\nSee\sfile\s"fet.out"\sfor\sa\slog.\n\nSo,\sI\swas\sunable\sto\sreproduce\sthe\serror\son\smy\ssystem:\n\n%\sparray\stcl_platform\ntcl_platform(byteOrder)\s=\slittleEndian\ntcl_platform(machine)\s\s\s=\si586\ntcl_platform(os)\s\s\s\s\s\s\s\s=\sLinux\ntcl_platform(osVersion)\s=\s2.2.17\ntcl_platform(platform)\s\s=\sunix\ntcl_platform(user)\s\s\s\s\s\s=\stcl\n%\sinfo\stclversion\n8.3\n%\sinfo\spatchlevel\n8.3.1\n\s\nGriff,\splease\suse\sthe\snew\sscripts\sto\scheck\sthis\sout\son\syour\nsystem\stoo.\n\nNote,\s"numbergen"\sdoes\s[fconfigure\sstdout\s-buffering\sline\n-translation\scr]\sto\sget\sthe\sright\sline-separators\sand\sto\navoid\sexplicit\sflushing.\sThis\scould\sbe\sa\sdifference\swith\sthe\noriginal\sapplication\stoo.\sIOW\sthe\soriginal\sapplication\s/\necho\sscript\smay\sbuffer\sthe\slast\sline\slonger\sthan\sis\nintended.\sThe\sC\slibrary\soften\sacts\sdifferently,\sespecially\nwith\sregard\sto\sbuffering\soutput,\swhen\sit\sdetects\sthat\sit\ntalks\sto\sa\spipe\sand\snot\sa\spty\s(=\sterminal\slike\sxterm).\sThis\ncould\sbe\sanother\sreason\sfor\sthe\sproblem\syou\sexperience.\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 412504ffffffffffffffffffffffffffffffffff
U andreas_kupries
Z 51d71512697cc9971a0b83964aa8bdbe