Tcl Source Code

View Ticket
Ticket UUID: 1956530
Title: base64 added to binary ensemble
Type: Support Version: None
Submitter: patthoyts Created on: 2008-05-03 01:48:35
Subsystem: None Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-07-29 19:54:48
Resolution: Closed By: dkf
    Closed on: 2008-11-02 11:25:20
This patch adds two subcommands to the binary ensemble that provide encoding of binary data. The 'encode' and 'decode' commands are themselves ensembles to permit addition of further encodings either by packages or script implementations.

Implemented encodings are hex, uuencode and base64.
 binary decode base64 [binary encode base64 $data]
User Comments: dkf added on 2009-07-29 19:54:48:

IP - Comment Removed:

dkf added on 2008-11-02 18:25:20:

data_type - 210894

patthoyts added on 2008-05-30 00:09:02:

File Deleted - 276672:

patthoyts added on 2008-05-29 08:02:59:

File Added - 279381: tip317-20080529.patch

Logged In: YES 
Originator: YES

Updated the sample implementation. The base64 and uuencode encoders now support -maxlen and -wrapchar options and can wrap the output as it is generated. The decoders for all encodings accept a -strict option to cause errors to be raised on invalid input - by default they ignore invalid input and keep reading for the next valid octet.
Lots of tests added to the binary.test file.
File Added: tip317-20080529.patch

patthoyts added on 2008-05-03 08:48:35:

File Added - 276672: bincodec-20080503.patch