Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 146464718881ac16b2781cd796e1240694b2d69e
Ticket: 219079ffffffffffffffffffffffffffffffffff
You can set mark/space parity on OSes that don't support it
User & Date: nobody on 2000-10-26 01:10:23
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5089 Bug
    Version: 8.3
    SubmitDate: '2000-04-14'
    LastModified: '2000-04-14'
    Severity: LOW
    Status: Released
    Submitter: hobbs
    ChangedBy: hobbs
    OS: All Unix
    FixedDate: '2000-04-14'
    FixedInVersion: 8.3.1
    ClosedDate: '2000-10-25'
    
    
    From: Daniel O'Connor
    
    
    
    Hi,
    
    While investigating using mark and space parity in an application I
    
    noticed that if your OS doesn't support mark/space parity it
    
    (tclUnixChan.c) will still let you set it.
    
    
    
    Attached is a patch which causes the fconfigure -mode command to
    
    generate an error if you use mark/space parity and it isn't supported.
    
    
    
    I created it from Tcl8.0.5, but it applies with a 9 line offset to
    
    8.2.3.
    
    
    
    --- tclUnixChan.c.origThu Feb 17 12:05:58 2000
    
    +++ tclUnixChan.cThu Feb 17 11:58:30 2000
    
    @@ -1123,10 +1123,18 @@
    
     }
    
     return TCL_ERROR;
    
         }
    
    +#ifdef PAREXT
    
         if (strchr("noems", parity) == NULL) {
    
    +#else
    
    +    if (strchr("noe", parity) == NULL) {
    
    +#endif
    
     if (interp != NULL) {
    
         Tcl_AppendResult(interp, bad,
    
    +#ifdef PAREXT
    
         " parity: should be n, o, e, m, or s", NULL);
    
    +#else
    
    +    " parity: should be n, o, or e", NULL);
    
    +#endif
    
     }
    
     return TCL_ERROR;
    
         }
    
    
    
    
    
    Patched in 8.3.1.
    
  4. foundin changed to: "obsolete: 8.3"
  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: "62. (unused)"
  10. title changed to:
    You can set mark/space parity on OSes that don't support it
    
  11. type changed to: "Bug"