Skip to content
Tcl Source Code View Ticket
Login

View Ticket

clock format [clock seconds] -format %c may fail on Windows

Closed / Fixed1751117fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-07-10 12:21:02
Bug found on Windows XP SP2.
If you set your regional options to 'Portuguese', then the following command line:
clock format [clock seconds] -format %c
may fail with the following error:
bad format string "%c"

This happens when the result is too long, for example when the current day is a Friday in February.

[email protected]
kennykbplain2007-08-26 00:13:02
Logged In: YES 
user_id=99768
Originator: NO

Zoincks! A buffer overrun!  Fixed in 8.4; the relevant code no longer even exists in 8.5.
Log in (anonymous is fine) to add a comment.