Re: upgrade problem tcl/tk-8.4 -> 8.5 -- please help



Donald Arseneau wrote:
On Jul 31, 1:24 am, Donald Arseneau <a...@xxxxxxxxx> wrote:
On Jul 31, 12:30 am, Helmut Jarausch <jarau...@xxxxxxxxx> wrote:
When upgrading from Tcl/Tk-8.4.* to 8.5.3 an error occurs in
an old script (tkdiff+)
unmatched open brace in list
while executing
"foreach {pattern dummy1 dummy2} $content {

Maybe $content contains many lines and is removed, but it probably
also contains brace characters, and is not really a list.

OK, I grabbed tkdiff+.3.07g, and that line is part of status:save,
and $content is the contents of the rc file, likely .tkdiffrc or
_tkdiff.rc. Check that the file has not been clobbered.

Ummmm... does your rc file contain comments? Comments are allowed
for processing the file, but I don't see any method for handling
them when saving the status.

Donald Arseneau a...@xxxxxxxxx


Thanks Donald!

I've remove .tkdiffrc and now the error occurs at line 9422

foreach {p d f} $content {
# remove entries older than 6 months
if {[clock scan "6 months" -base [clock scan $d]] > [clock seconds]} {
puts $out "[list $p] [list $d] [list $f]\n"
}
Naively I've tried

#!/usr/bin/wish
set t [clock format [clock seconds]]

puts stdout $t
clock scan $t

# this gives
Thu Jul 31 10:01:57 +0000 2008
Error in startup script: unable to convert date-time string "Thu Jul 31 10:01:57 +0000 2008"
while executing
"FreeScan $string $base $timezone $locale"
(procedure "::tcl::clock::scan" line 70)
invoked from within
"clock scan $t"
(file "clock_test.tcl" line 5)


What am I missing here?

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
.



Relevant Pages

  • Re: registers vs cache
    ... cycle from the time the uP start executing the move operation and it ... counting clock cycles is no longer a useful operation. ... What used to be state of the art is now a niche market. ...
    (comp.arch)
  • Re: clock time in milliseconds into a c program
    ... I need to clock the function execution time into a C ... using wall time is ... your code might only have been executing for a very small piece of it. ... I'd suggest looking at microtime or nanotime. ...
    (freebsd-hackers)
  • Re: registers vs cache
    ... memory location in a register can I suppose it will takes 2 clock ... cycle from the time the uP start executing the move operation and it ... useful operation. ...
    (comp.arch)
  • upgrade problem tcl/tk-8.4 -> 8.5 -- please help
    ... When upgrading from Tcl/Tk-8.4.* to 8.5.3 an error occurs in ... an old script ... unmatched open brace in list ... RWTH - Aachen University ...
    (comp.lang.tcl)
  • Re: upgrade problem tcl/tk-8.4 -> 8.5 [SOLVED]
    ... unmatched open brace in list ... clock format / clock scan ... incr i 3 ... RWTH - Aachen University ...
    (comp.lang.tcl)