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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "62. (unused)"
- title changed to:
You can set mark/space parity on OSes that don't support it
- type changed to: "Bug"