Overview
| Artifact ID: | 4e64f2b766f21d0cef1a0602816b6ed375cf0691 |
|---|---|
| Ticket: | 219323ffffffffffffffffffffffffffffffffff
addition of EBCDIC encoding |
| User & Date: | nobody on 2000-10-26 05:10:45 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3949 RFE Version: 8.3b1 SubmitDate: '1999-12-27' LastModified: '2000-02-05' Severity: MED Status: UnAssn Submitter: techsupp ChangedBy: hobbs OS: All FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Jan Nijtmans Comments: The EBCDIC tables come from <http://www.synkronix.com/programmers_guide/ebcdic.html> Of course, the same encoding will work for Tcl8.1 and 8.2 as well. The .enc-file is not generated from the .txt-file by the executable in the Tcl- distribution, but by the following quickly written script: for {set i 0} {$i<256} {incr i} { set hex "[format "%02X" $i]" set a($hex) 00$hex } set f [open ebcdic.txt] while {![eof $f]} { set line [gets $f] if {[string equal [string range $line 0 1] "0x"]} { set hex1 [string range $line 2 3] set hex2 [string range $line 9 10] set a($hex1) 00$hex2 } } close $f set f [open ebcdic.enc w] puts $f "# Encoding file: ebcdic, single-byte\nS\n006F 0 1\n00" for {set i 0} {$i<256} {incr i} { set hex "[format "%02X" $i]" if {[string range $hex 1 1] == "0"} {puts $f ""} puts -nonewline $f "$a($hex)" } close $f DesiredBehavior: EBCDIC encoding would allow a 3270 terminal emulator to be written in Tcl. Further on, it would make porting Tcl/Tk to any mainframe using EBCDIC a lot easier. Patch: The 2 new files can be downloaded from: http://members1.chello.nl/~j.nijtmans/ebcdic.txt http://members1.chello.nl/~j.nijtmans/ebcdic.txt PatchFiles: ebcdic.txt, ebcdic.enc (2 new files) - foundin changed to: "obsolete: 8.3b1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "57. zlib"
- title changed to: "addition of EBCDIC encoding"
- type changed to: "Bug"