Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-07-29
19:54 • Ticket [1956530fff] base64 added to binary ensemble status still Closed with... artifact: fc92500b84 user: dkf
2008-11-02
18:25 • Closed ticket [1956530fff]. artifact: 854209ecd6 user: dkf
2008-05-30
00:09 • Ticket [1956530fff]: 4 changes artifact: e88e51f1e2 user: patthoyts
2008-05-29
08:02 • Ticket [1956530fff]: 4 changes artifact: e1f0c8e488 user: patthoyts
08:02 • Add attachment tip317-20080529.patch to ticket [1956530fffffffff|195653... artifact: ad28613580 user: patthoyts
2008-05-03
08:48 • Ticket [1956530fff] base64 added to binary ensemble status still Open with 4... artifact: 5f2182e067 user: patthoyts
01:48 • New ticket [1956530fff]. artifact: b47d772e64 user: patthoyts

base64 added to binary ensemble

Closed1956530fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 17 years ago
Descriptionplain2008-05-03 01:48:35
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.
eg:
 binary decode base64 [binary encode base64 $data]
patthoytsplain2008-05-03 08:48:35
File Added - 276672: bincodec-20080503.patch
patthoytsplain2008-05-29 08:02:59
File Added - 279381: tip317-20080529.patch

Logged In: YES 
user_id=202636
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
patthoytsplain2008-05-30 00:09:02
File Deleted - 276672:
dkfplain2008-11-02 18:25:20
data_type - 210894
dkfplain2009-07-29 19:54:48
IP - Comment Removed: 130.88.1.31
Log in (anonymous is fine) to add a comment.

Attachments: