Skip to content
Tcl Source Code Artifact [4e64f2b766]
Login

Artifact [4e64f2b766]

Artifact 4e64f2b766f21d0cef1a0602816b6ed375cf0691:

Ticket change [4e64f2b766] - New ticket [219323ffffffffff|219323ffff] <i>addition of EBCDIC encoding</i>. by nobody on 2000-10-26 05:10:45.
D 2000-10-26T05:10:45
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3949\sRFE\nVersion:\s8.3b1\nSubmitDate:\s'1999-12-27'\nLastModified:\s'2000-02-05'\nSeverity:\sMED\nStatus:\sUnAssn\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sAll\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nJan\sNijtmans\n\nComments:\nThe\sEBCDIC\stables\scome\sfrom\s<http://www.synkronix.com/programmers_guide/ebcdic.html>\nOf\scourse,\sthe\ssame\sencoding\swill\swork\sfor\sTcl8.1\sand\s8.2\sas\swell.\nThe\s.enc-file\sis\snot\sgenerated\sfrom\sthe\s.txt-file\sby\sthe\sexecutable\sin\sthe\nTcl-\sdistribution,\sbut\sby\sthe\sfollowing\squickly\swritten\sscript:\n\nfor\s{set\si\s0}\s{$i<256}\s{incr\si}\s{\n\s\s\s\sset\shex\s"[format\s"%02X"\s$i]"\n\s\s\s\sset\sa($hex)\s00$hex\n}\n\nset\sf\s[open\sebcdic.txt]\nwhile\s{![eof\s$f]}\s{\n\s\s\s\sset\sline\s[gets\s$f]\n\s\s\s\sif\s{[string\sequal\s[string\srange\s$line\s0\s1]\s"0x"]}\s{\nset\shex1\s[string\srange\s$line\s2\s3]\nset\shex2\s[string\srange\s$line\s9\s10]\nset\sa($hex1)\s00$hex2\n\s\s\s\s}\n}\nclose\s$f\nset\sf\s[open\sebcdic.enc\sw]\nputs\s$f\s"#\sEncoding\sfile:\sebcdic,\ssingle-byte\\nS\\n006F\s0\s1\\n00"\nfor\s{set\si\s0}\s{$i<256}\s{incr\si}\s{\n\s\s\s\sset\shex\s"[format\s"%02X"\s$i]"\n\s\s\s\sif\s{[string\srange\s$hex\s1\s1]\s==\s"0"}\s{puts\s$f\s""}\n\s\s\s\sputs\s-nonewline\s$f\s"$a($hex)"\n}\nclose\s$f\n\nDesiredBehavior:\nEBCDIC\sencoding\swould\sallow\sa\s3270\sterminal\semulator\sto\sbe\swritten\sin\sTcl.\sFurther\son,\nit\swould\smake\sporting\sTcl/Tk\sto\sany\smainframe\susing\sEBCDIC\sa\slot\seasier.\n\nPatch:\nThe\s2\snew\sfiles\scan\sbe\sdownloaded\sfrom:\nhttp://members1.chello.nl/~j.nijtmans/ebcdic.txt\nhttp://members1.chello.nl/~j.nijtmans/ebcdic.txt\n\nPatchFiles:\nebcdic.txt,\sebcdic.enc\s(2\snew\sfiles)\n\n\n\n
J foundin obsolete:\s8.3b1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 57.\szlib
J title addition\sof\sEBCDIC\sencoding
J type Bug
K 219323ffffffffffffffffffffffffffffffffff
U nobody
Z 2e8ce75e7e7a5549212219c9c5dd49b1