Subject: lib/1860: strftime's %u fmt is two digits wide
To: None <sun-lamp-gnats@pain.lcs.mit.edu>
From: J.T. Conklin <jtc@NetBSD.ORG>
List: netbsd-bugs
Date: 12/27/1995 19:26:25
>Number:         1860
>Category:       lib
>Synopsis:       strftime's %u fmt is two digits wide
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 27 19:35:02 1995
>Last-Modified:
>Originator:     J.T. Conklin
>Organization:
	
>Release:        1.1
>Environment:
	
System: NetBSD pain.lcs.mit.edu 1.0A NetBSD 1.0A (PAIN) #0: Sat Oct 7 08:07:40 EDT 1995 mycroft@pain.lcs.mit.edu:/a/users/mycroft/sys/arch/i386/compile/PAIN i386


>Description:
The strftime %u fmt is supposed to be replaced by the weekday (Monday
as the first day of the week) as a decimal number (1-7); but our code
always has a leading 0.

>How-To-Repeat:
	strftime(buf, sizeof(buf), "%u", tm);
	-or-
	date +%u

>Fix:
	
>Audit-Trail:
>Unformatted: