Bug 31164

Summary: man page for strftime is incorrect
Product: Documentation Reporter: ulrich <ulrich>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description ulrich 2001-10-09 16:00:00 UTC
man page for strftime

%a    is replaced by national representation of the abbreviated weekday
           name, where the abbreviation is the first three characters.

This is incorrect and should be

"... two characters and a space."

How-To-Repeat: date "+%a|"

reveals that an additional blank is appended
Comment 1 Dima Dorfman 2001-10-15 00:20:08 UTC
ulrich <ulrich@infopuls.com> wrote:
> >Description:
> man page for strftime
> 
> %a    is replaced by national representation of the abbreviated weekday
>            name, where the abbreviation is the first three characters.
> 
> This is incorrect and should be
> 
> "... two characters and a space."
      ^^^^^
Is this part of the change?

> >How-To-Repeat:
> date "+%a|"

I can't reproduce this:

	dima@hornet% uname -r
	4.4-20011007-STABLE
	dima@hornet% date "+%a|"
	Sun|

	dima@mirage% uname -r
	5.0-20010908-CURRENT
	dima@mirage% date "+%a|"
	Sun|
Comment 2 Dima Dorfman 2001-10-15 14:37:13 UTC
Adding to audit-trail.

Ulrich <ulrich@infopuls.com> wrote:
> On Sun, Oct 14, 2001 at 11:20:08PM +0000, Dima Dorfman wrote:
> > ulrich <ulrich@infopuls.com> wrote:
> > > >Description:
> > > man page for strftime
> > > 
> > > %a    is replaced by national representation of the abbreviated weekday
> > >            name, where the abbreviation is the first three characters.
> > > 
> > > This is incorrect and should be
> > > 
> > > "... two characters and a space."
> >       ^^^^^
> > Is this part of the change?
> 
> I don't understand the question.
> 
> > > >How-To-Repeat:
> > > date "+%a|"
> > 
> > I can't reproduce this:
> > 
> > 	dima@hornet% uname -r
> > 	4.4-20011007-STABLE
> > 	dima@hornet% date "+%a|"
> > 	Sun|
> > 
> > 	dima@mirage% uname -r
> > 	5.0-20010908-CURRENT
> > 	dima@mirage% date "+%a|"
> > 	Sun|
> 
> ----------------------------------------------------------------
> 
> uname -r
> 4.1-RELEASE
> 
> date "+%a|"
> Mo |
> 
> printenv | grep LC   
> LC_MESSAGES=de_DE.ISO_8859-1
> LC_TIME=de_DE.ISO_8859-1
> LC_CTYPE=de_DE.ISO_8859-1
> LC_COLLATE=de_DE.ISO_8859-1
> 
> ----------------------------------------------------------------
> 
> Seems that depending on the locale configuration the result is 
> different. By now I regard the implementation of strftime as 
> incorrect as the first three characters of the weekday in this 
> case are "Mon". If there are intentionally different numbers of 
> non blank characters for different locale settings the man page 
> should say so.
>
Comment 3 simon 2003-05-24 01:51:02 UTC
Hello

This was a problem with an incorrect manual page.  This was fixed in :
src/lib/libc/stdtime/strftime.3 v. 1.25 and MFC'ed as 1.18.2.8.

Therefore I think this PR can be closed.

-- 
Simon L. Nielsen
Comment 4 Giorgos Keramidas freebsd_committer freebsd_triage 2003-05-24 02:21:16 UTC
State Changed
From-To: open->closed

This has already been merged to STABLE.  Thanks to Simon L. Nielsen for 
letting us know this can be closed now.