Bug 26827

Summary: gcc doesn't know about '%+' in formatstring of strftime()
Product: Base System Reporter: marcolz <marcolz>
Component: gnuAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me CC: sys
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description marcolz 2001-04-25 01:30:01 UTC
gcc warns when using '%+' in a formatstring when using strftime(), although
libc knows it.

How-To-Repeat: Any piece of code containing something like
strftime(buffer, sizeof(buffer), "%+", localtime(&(sb.st_mtime)));
compiled with with -Wall
Comment 1 dima 2001-04-25 01:33:13 UTC
marcolz@ilse.nl writes:
> 
> >Number:         26827
> >Category:       gnu
> >Synopsis:       gcc doesn't know about '%+' in formatstring of strftime()
> >Description:
> gcc warns when using '%+' in a formatstring when using strftime(), although
> libc knows it.

Is "%+" a FreeBSDism?  If it isn't, this should probably be sent to
the GCC folks.
Comment 2 marcolz 2001-04-25 01:41:16 UTC
> Is "%+" a FreeBSDism?  If it isn't, this should probably be sent to
> the GCC folks.

Hmmm.. I don't know... Linux has it in glibc2, but does not support it...

Marc
Comment 3 dd freebsd_committer freebsd_triage 2001-04-29 04:05:10 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

Over to in-tree gcc maintainer, who should know (where to find out) if 
'%+' is a FreeBSDism.
Comment 4 David E. O'Brien freebsd_committer freebsd_triage 2001-05-25 20:01:52 UTC
State Changed
From-To: open->closed

committed, thanks!