Menu

#21 Date fmt broken on freebsd, with patch

open-accepted
None
5
2001-07-26
2001-06-17
No

I just installed cbb-0.9.2, ran it, created a new
group, after which the date field contained

m0/2d/4Y02

and when I moved my mouse outside the window I got a
dialog

Error: syntax error in expression "4Y * 100"

I traced this problem back to the expressions in the
source:

clock format [clock seconds] -format "%4Y%02m%02d"

which, on freebsd 4.1.1-release, tcl/tk 8.0, 8.2, or
8.3, produces 4Y02m02d as output. The man page for the
clock tcl function does not say that numbers are
allowed before the single-character format
specification. On redhat 7.0 linux the man page also
does not say that numbers are involved, but tcl/tk 8.2
produces the output you're expecting (20010616). Patch
to fix this uploaded as a file attachment.

Discussion

  • Timothy Miller

    Timothy Miller - 2001-06-17

    patch to init.tcl and main.tcl in the tcl subdirectory

     
  • Timothy Miller

    Timothy Miller - 2001-06-17

    patch to init.tcl and main.tcl in the tcl subdirectory

     
  • Timothy Miller

    Timothy Miller - 2001-06-17

    Logged In: YES
    user_id=179007

    Use the *second* patch file "cbb-diff" NOT
    "cbbdiff"--cbbdiff contains an extraneous unrelated change
    and sourceforge won't let me delete it.

     
  • Brian Koontz

    Brian Koontz - 2001-07-14
    • status: open --> open-accepted
     
  • Mark Fyffe

    Mark Fyffe - 2001-07-21

    Logged In: YES
    user_id=277491

    Same problem with CBB 0.9.4 on Solaris 8 with tk/tcl 8.4.
    Needed to change date format from %4Y%02m%02d to %Y%m%d.

    Suspect date format also appears in menu.tcl, but didn't
    bite me before I fixed it.

     
  • Brian Koontz

    Brian Koontz - 2001-07-26
    • assigned_to: nobody --> briank
     

Log in to post a comment.

MongoDB Logo MongoDB