Skip to content
Tcl Source Code History Of Ticket 402725ffffffffff
Login

History Of Ticket 402725ffffffffff

Artifacts Associated With Ticket 402725ffffffffff

  1. Ticket change [85ce5c45ea] (rid 131381) by dkf on 2000-12-08 15:17:26:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to: " "
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dkf"
    9. subsystem initialized to: ""
    10. title initialized to: "Improvements to tclsh(1) docs"
    11. type initialized to: "Patch"
  2. Ticket change [ddb8cffabc] (rid 114723) by dkf on 2000-12-08 22:22:23:

    1. icomment:
      Discusses fact that tclsh is usually installed with a version number, and what the standard channels are.  Also adds some xrefs.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [d8b8542727] (rid 107494) by dgp on 2000-12-09 03:08:38:

    1. icomment:
      The version number comments are good, but I don't think
      the standard channels belong here.  It is not tclsh that
      creates the standard channels.  The Tcl library itself
      creates them as needed, no matter what application the
      Tcl library has been linked into.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [13c207cfdc] (rid 124274) by dkf on 2000-12-11 17:20:11:

    1. icomment:
      I know, but I've wracked my brains and can't think of where else to put the added information (which is needed, somewhere.)  It doesn't belong in open(n),socket(n), fconfigure(n), puts(n), read(n), gets(n), etc. and not really in Tcl(n) either.  It is also way too short for its own manual page.  (All of which goes to explain why it has fallen between stools and ended up undocumented, to the deprivation of the Tcl docs as a whole.)  Putting it in tclsh(1) isn't perfect but at least it means that it is documented somewhere, and somewhere that is reasonably logical to someone coming to Tcl cold.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [1779981910] (rid 122502) by hobbs on 2000-12-14 02:53:08:

    1. icomment:
      If you only care to have the standard channels listed in some docs somewhere, then the C API docs have a few places that would be appropriate.  CrtChannel.3 really seems like the most appropriate place, because you could additionally note the fact that if one of the standard channels are closed, then the next opened (created) channel will become a standard channel.  This occurs in Tcl_CreateChannel, BTW.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  6. Ticket change [1d221e08aa] (rid 90745) by dgp on 2001-02-22 06:57:11:

    1. subsystem changed to: "50. Embedding Support"
  7. Ticket change [de6a5a5c60] (rid 114848) by dgp on 2001-08-07 03:00:05:

    1. assignee changed to: "dgp"
  8. Add attachment "tclsh.patch" [f970048bba] (rid 91710) by dgp on 2001-08-07 03:45:31.

  9. Ticket change [881f49b168] (rid 131819) by dgp on 2001-08-07 03:45:31:

    1. icomment:
      
      
      File Deleted - 2329: 
      
      
      
      File Added - 9306: tclsh.patch
      
      Logged In: YES 
      user_id=80530
      
      Committed the non-controversial part of the patch.
      
      Reworded summary to describe the rest.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. title changed to: "Document Tcl's standard channels"
    5. username: "dgp"
  10. Ticket change [bd466f5227] (rid 101880) by dgp on 2001-08-07 03:47:50:

    1. assignee changed to: "nobody"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Remaining patch deals with Tcl channels.  Changing Category.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "25. Channel System"
    6. username: "dgp"
  11. Ticket change [e6db92ea16] (rid 104361) by andreas_kupries on 2001-08-25 00:49:58:

    1. assignee changed to: "dgp"
  12. Ticket change [685bb06d95] (rid 103050) by andreas_kupries on 2001-08-25 00:49:59:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Don, is the attached patch the remaining patch
      or the full patch, partially applied ?
      
      If it is the full patch: Can you separate out the
      parts which were not applied yet ?
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  13. Ticket change [3301e3833d] (rid 93716) by dgp on 2001-08-25 02:52:55:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      The attached patch contains only parts that
      have not been committed to CVS, due to disagreement
      about the proper place to document Tcl's
      standard channel handles.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [baf4f4c89c] (rid 129399) by dgp on 2001-08-25 02:55:28:

    1. assignee changed to: "andreas_kupries"
  15. Ticket change [c85bc18833] (rid 122088) by andreas_kupries on 2001-08-25 03:33:01:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      "It is not tclsh that creates the standard channels.  The 
      Tcl library itself creates them as needed, no matter what 
      application the Tcl library has been linked into."
      
      Notes about this: The part initializing the standard 
      channels is "Tcl_Main" in TclMain.c. This is physically
      part of the tcl library, but logically it is "tclsh",
      because it also does all the interactive stuff. In that
      respect it is tclsh which initializes the standard
      channels.
      
      And any application not using Tcl_Main will have to 
      initialize the channels by itself, through a call 
      to "Tcl_GetStdChannel". Note: If the application never
      initializes the standard channels, "Tcl_CreateChannel"
      won't fill these slots either.
      
      So I will accept the patch as is and have a look at the
      manpages for Tcl_CreateChannel and Tcl_GetStdChannel if
      they need additional explanations too.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  16. Add attachment "doc.diff" [5a2b80d143] (rid 118094) by andreas_kupries on 2001-08-25 04:05:29.

  17. Ticket change [86c42e0319] (rid 131575) by andreas_kupries on 2001-08-25 04:05:29:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Enclosed an updated patch (doc.diff) to the documentation.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  18. Ticket change [d27c9787ca] (rid 113535) by andreas_kupries on 2001-08-25 04:05:30:

    1. icomment:
      
      
      File Added - 9955: doc.diff
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  19. Ticket change [0fb027f3b6] (rid 94834) by dgp on 2001-08-25 07:03:38:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      That covers the bases pretty well.  I had missed
      the detail that Tcl_CreateChannel() only fills
      NULL standard channels that have previously been
      initialized.
      
      A few places you say this initialization must be
      done by a call to Tcl_GetStdChannel(), but
      Tcl_SetStdChannel() also performs the initialization.
      
      Another problem is that these changes suggest that
      standard channel initialization with a
      Tcl_{Get|Set}StdChannel() call can only be done
      by the application.  The example is Tcl_Main's
      initialization in tclsh.  But that is not true.
      Every call to Tcl_RegisterChannel() in a non-safe
      interp will call Tcl_GetStdChannel for all three
      standard channels, so it you have any channel at
      all registered in an interp, you will have the 
      standard channels.  Also every use of the one of
      the names std* where a channel name is expected
      will cause a call to Tcl_GetStdChannel for that
      channel, initializing it if needed.  There are
      other places too.  The application can't prevent
      it.  That's why the std* channels are a feature
      of the Tcl library, not only the application tclsh.
      
      Given that Tcl will initialize the std channels as
      needed (in possibly surprising ways via Tcl_CreateChannel),
      we need to advise application writers that
      they need to initialize them themselves, or risk Tcl
      making a bad choice for them.
      
      A related matter in Tk is where to document
      the mess that is standard channels for wish on
      Windows.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  20. Ticket change [c8cb466510] (rid 122166) by andreas_kupries on 2001-08-27 22:58:39:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      "Tcl_SetStdChannel() also performs the initialization" ...
      Right. I missed that.
      
      "Every call to Tcl_RegisterChannel() in a non-safe
      interp will call Tcl_GetStdChannel". Not quite 
      true. "Tcl_RegisterChannel" calls "GetChannelTable" and 
      that one does initialize the StdChannels, but only on the 
      first call, if there is no channel table.
      
      In the end it amounts to the same thing and there you are 
      right. It is the Tcl library which does the initialization, 
      if the application doesn't :)
      
      Surprising ways of initialization: See
      http://sourceforge.net/tracker/?
      func=detail&aid=419685&group_id=10894&atid=110894
      
      for a bug report about such. 'Fixing' this bug
      influences the documentation too. Windows of
      course. Not wish. Tclsh as a NT service.
      
      With all this it might be easier to write a new manpage 
      talking about standard channels and then to reference that 
      from the various other manpages.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  21. Ticket change [f2d881e7fa] (rid 109626) by andreas_kupries on 2001-08-28 02:12:17:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Added revised enhanced patch. Separate manpage for general 
      explanations of behaviour + small docs in the individual 
      pages and references to the new page.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  22. Add attachment "doc.diff.2" [b8467ab12c] (rid 128942) by andreas_kupries on 2001-08-28 02:12:17.

  23. Ticket change [13261cab75] (rid 124164) by andreas_kupries on 2001-08-28 02:12:18:

    1. icomment:
      
      
      File Added - 10058: doc.diff.2
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  24. Ticket change [a649739629] (rid 98575) by andreas_kupries on 2001-08-28 05:15:34:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      2nd revision.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  25. Ticket change [38f82063b9] (rid 112308) by andreas_kupries on 2001-08-28 05:15:39:

    1. icomment:
      
      
      File Added - 10064: doc.diff.3
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  26. Add attachment "doc.diff.3" [5a4a0802e4] (rid 118120) by andreas_kupries on 2001-08-28 05:15:39.

  27. Ticket change [fa19a208b6] (rid 91817) by andreas_kupries on 2001-08-28 07:09:48:

    1. icomment:
      
      
      File Added - 10076: doc.diff.4
      
      Logged In: YES 
      user_id=75003
      
      3rd revision. Should be final
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  28. Add attachment "doc.diff.4" [b16398fd75] (rid 98136) by andreas_kupries on 2001-08-28 07:09:48.

  29. Ticket change [7f369bc0ba] (rid 97536) by dkf on 2001-08-28 16:12:23:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      A few points with the new manual page:
      
      1) Should the first argument to .TH be quoted?
      2) There is no Tcl_StandardChannels() function, you know, so
         is putting a Tcl_ prefix on it a good idea..?
      3) What happens on the Mac?  Is the behaviour of tclsh not
         an issue there (in the non-OSX world, of course.)
      4) Capitalisation of tclsh and wish (toward end in .SH args)
         is inconsistent.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  30. Ticket change [1f33244f91] (rid 91103) by andreas_kupries on 2001-08-29 03:39:10:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Ad 1) Yes, I guess so.
      Ad 2) Maybe not. OTOH the whole content is specific to Tcl.
      Ad 3) tclMacChan.c seems to initialize fairly normal
            standard channels.
      Ad 4) Ok.
      Fixed (1) and (4) locally now. Unsure about (2).
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  31. Ticket change [60286ec957] (rid 115945) by andreas_kupries on 2001-09-05 07:23:06:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      See also BR #219250.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  32. Ticket change [46b6777ab6] (rid 99564) by andreas_kupries on 2001-09-11 04:45:34:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Another update of the patch. Integrated feedback from 
      Christopher Nelson.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  33. Add attachment "doc.diff.5" [2f7bde03d1] (rid 93072) by andreas_kupries on 2001-09-11 04:45:35.

  34. Ticket change [5528ced006] (rid 94079) by andreas_kupries on 2001-09-11 04:45:35:

    1. icomment:
      
      
      File Added - 10616: doc.diff.5
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  35. Ticket change [5199e23ee3] (rid 126160) by andreas_kupries on 2001-09-11 04:50:56:

    1. closedate changed to: "2001-09-10T21:50:56"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      Logged In: YES 
      user_id=75003
      
      Committed to head.
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"