From nobody  Wed Apr  1 03:54:29 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id DAA12310;
          Wed, 1 Apr 1998 03:54:29 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199804011154.DAA12310@hub.freebsd.org>
Date: Wed, 1 Apr 1998 03:54:29 -0800 (PST)
From: pc@inr.fzk.de
To: freebsd-gnats-submit@freebsd.org
Subject: sdr-2.4a7 (and 2.3a1) : Calendar doesn't work right (+ "fix")
X-Send-Pr-Version: www-1.0

>Number:         6190
>Category:       ports
>Synopsis:       sdr-2.4a7 (and 2.3a1) : Calendar doesn't work right (+ "fix")
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr  1 04:00:01 PST 1998
>Closed-Date:    Thu Apr 2 15:43:38 PST 1998
>Last-Modified:  Thu Apr  2 15:47:35 PST 1998
>Originator:     Peter Cornelius
>Release:        FreeBSD 2.2.5-RELEASE
>Organization:
Forschungszentrum Karlsruhe
>Environment:
FreeBSD inr-delphi.fzk.de 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Fri Jan 23 20:26:48 CET 1998     root@inr-delphi.fzk.de:/usr/src/sys/compile/INR-DELPHI  i386
(but with some more recent sys sources)
>Description:
Calling 'Calendar' from the sdr menu, a error tcl window pops open
saying setlocale: file not found or something like that. The (other)
window that supposedly shows the calendar then stays empty.

This is probably a more general problem, but so far I haven't had the
time to track it down. For now, I can live with my "fix". This also
occurs on a "clean" 2.2.5R machine that I use at home (also Pentium
w/. 32 MB RAM).

All I did was to throw away the error message. Obviously, this
doesn't cure the problem, but it makes its symptoms go away.
>How-To-Repeat:
Click 'Calendar' button in sdr.
>Fix:
Here's a diff -c sdr.tcl sdr.tcl.orig, made in ${WRKSRC}/src/:

*** sdr.tcl     Wed Apr  1 13:27:34 1998
--- sdr.tcl.orig        Wed Apr  1 12:47:04 1998
***************
*** 3126,3132 ****
            incr mon -12
            incr year
        }
!       set cal [exec cal $mon $year 2>/dev/null]
        .cal.f0.c addtag mon$i withtag \
            [.cal.f0.c create text [expr $i*$fw*32] 0 -anchor nw\
               -fill $fg -font $font]
--- 3126,3132 ----
            incr mon -12
            incr year
        }
!       set cal [exec cal $mon $year]
        .cal.f0.c addtag mon$i withtag \
            [.cal.f0.c create text [expr $i*$fw*32] 0 -anchor nw\
               -fill $fg -font $font]

>Release-Note:
>Audit-Trail:

From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
To: pc@inr.fzk.de
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: ports/6190: sdr-2.4a7 (and 2.3a1) : Calendar doesn't work right (+ "fix")
Date: Thu, 2 Apr 1998 11:16:40 +0200 (MET DST)

 > >Release:        FreeBSD 2.2.5-RELEASE
 > >Environment:
 > FreeBSD inr-delphi.fzk.de 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Fri Jan 23 20:26:48 CET 1998     root@inr-delphi.fzk.de:/usr/src/sys/compile/INR-DELPHI  i386
 > (but with some more recent sys sources)
 > >Description:
 > Calling 'Calendar' from the sdr menu, a error tcl window pops open
 > saying setlocale: file not found or something like that. The (other)
 
 Please check your environment variables. Relevant are LC_TIME, LC_ALL,
 LANG. If any one of them is set (and exported) it must be set
 to an entry in /usr/share/locale. And this entry should denote
 (a symbolic link to) a directory. 
 And in that directory a (symbolic link to) file LC_TIME should exist.
 
 Here is an example on my machine:
 
 echo $LANG
 	de_DE.ISO_8859-1
 
 ls /usr/share/locale
 	ASCII
 	...
 	de
 	de_AT
 	de_AT.ISO8859-1
 	de_AT.ISO_8859-1
 	de_CH
 	de_CH.ISO8859-1
 	de_CH.ISO_8859-1
 	de_DE
 	de_DE.88591
 	de_DE.88591.en
 	de_DE.ISO8859-1
 	de_DE.ISO_8859-1
 	^^^^^^^^^^^^^^^^
 	dutch.iso88591
 	en
 	...
 	swedish.iso88591
 	us-ascii
 
 ls /usr/share/locale/de_DE.ISO_8859-1
 	LC_COLLATE
 	LC_CTYPE
 	LC_TIME
 
 Wolfgang
State-Changed-From-To: open->closed 
State-Changed-By: helbig 
State-Changed-When: Thu Apr 2 15:43:38 PST 1998 
State-Changed-Why:  
Pilot error -- LANG pointed to invalid locale 
>Unformatted:
