Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 414be43fcc650c0cd98febe80ffc49b0f856367f
Ticket: 218331ffffffffffffffffffffffffffffffffff
Communication puts/gets (gets -eol char)
User & Date: nobody on 2000-10-26 00:56:18
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3924 RFE
    Version: 8.1
    SubmitDate: '1999-12-22'
    LastModified: '2000-04-03'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Linux-SuSE
    Machine: Linux / Sun-Solaris
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-03'
    
    
    Name:
    Andreas Otto
    
    DesiredBehavior:
    I use a client-server system which connect over the network.
    I use "puts $FileIO $List" to send an tcl list over the network and "gets $FileIO List" to receive the list.
    If insight the List are strings with "newline" chars, the single "puts" produces many "gets" on the other side.
    This is not GOOD !!!! 
    because i expect a valid tcl list, but with " newline" insight the list you get something 
    like "{..<newline>"  "..}" as 2 single "gets"
    An easy solution would be:
     extend the "fconfigure" command with something like similar to the "-translation" switch,
    where you can choose the "end of line" char.
    
    
    
    It's unlikely that this would ever be done, because it is counter
    to the whole basis of 'gets' (that it reads until newline), just
    like the C counterpart.  The same would happen in C.  The common
    solution it to regsub the \n's before sending the data across. 
    -- 01/10/2000 hobbs
    This would require a patch to be considered.  A simple protocol
    would be best served here (one gets to tell you to read the
    next N chars). 
    -- 04/03/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "63. (unused)"
  10. title changed to: "Communication puts/gets (gets -eol char)"
  11. type changed to: "Bug"