Tk Library Source Code

View Ticket
Login
Ticket UUID: 700327
Title: uuencode/uudecode using Trf
Type: Bug Version: None
Submitter: rniva Created on: 2003-03-09 13:02:14
Subsystem: base64 Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-03-25 06:35:23
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2003-03-24 23:35:23
Description:
The following bug occurs when trying to uuencode a line
beginning with '-' using the uuencode command in
Trf(from base64/uuencode.tcl):

Error: ::uuencode: wrong # args, all options require an
argument

Errorinfo: ::uuencode: wrong # args, all options
require an argument
    while executing
"::uuencode -mode encode $s"

Using '--' to stop processing of arguments should fix it.

tcllib1.3/base64/uuencode.tcl

line 81:

 return [::uuencode -mode encode $s]

should be:

  return [::uuencode -mode encode -- $s]

Same with the call to uudecode.

The bug was discovered using ActiveState Tcl 8.4.2, but
also exists in the CVS repository as far as I can tell.
User Comments: andreas_kupries added on 2003-03-25 06:35:23:
Logged In: YES 
user_id=75003

Ye, it is in the CVS. Yes, using '--' will stop this. Made the 
change now. Thanks for the report.