opensubscriber
   Find in this group all groups
 
Unknown more information…

a : activetcl@listserv.ActiveState.com 2 December 2005 • 9:09PM -0500

[Activetcl] Problems on tcllib1.8 mime 1.4.1
by Franco Violi

REPLY TO AUTHOR
 
REPLY TO GROUP




We found a big problem on lib/tcllib1.8/mime/mime.tcl.

In this version, the date is formatted using %e (day of month) instead of %m
trimmered for leading zeroes. This bug cause unpredictable result on the
messages created using this extension.

These are the changes we made.

Best regards. Franco Violi.

3278c3278
<             return [lindex $MONTHS_LONG [expr [string trimleft [clock format
$clock -format %m] 0] - 1]]
---
>             return [lindex $MONTHS_LONG [clock format $clock -format %e]]
3300c3300
<             return [lindex $MONTHS_SHORT [expr [string trimleft [clock
format $clock -format %m] 0] - 1]]
---
>             return [lindex $MONTHS_SHORT [clock format $clock -format %e]]
3317c3317
<             set mon [lindex $MONTHS_SHORT [expr [string trimleft [clock
format $clock -format %m] 0] - 1]]
---
>             set mon [lindex $MONTHS_SHORT [clock format $clock -format %e]]
_______________________________________________
ActiveTcl mailing list
ActiveTcl@list...
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.