[Bug 251918] strptime(): %b always returns month 0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 17 17:30:16 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251918

--- Comment #2 from Yuri Pankov <yuripv at FreeBSD.org> ---
(In reply to Yuri Pankov from comment #1)
Actually, "as it comes earlier" part is not correct; it seems to be
implementation choice as standard does not specify was happens if conflicting
specifiers are provided:

- if %b and %j are specified, value converted by %b is ignored, month comes
from %j
- if %d and %j are specified, month day comes from %d, month comes from %j
- if all of the %b, %d, and %j are specified, %j is ignored, values come from
%b and %d

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list