https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90051
Bug ID: 90051
Summary: Error in spec comments - g-caliio.ads (%Z)
Product: gcc
Version: 8.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: bib_aab at hotmail dot com
Target Milestone: ---
The spec GNAT.Calendar.Time_IO, states that a picture_field with an option of
"%c", will produce the following:
"Sat Nov 04 12:02:33 EST 1989"
The EST part is supposed to be expanded with %Z.
However, the body does not support %Z and so the timezone is never shown.
The relevant part from the body is:
when 'c' =>
case Padding is
when Zero =>
Result := Result & Image (Date, "%a %b %d %T %Y");
when Space =>
Result := Result & Image (Date, "%a %b %_d %_T %Y");
when None =>
Result := Result & Image (Date, "%a %b %-d %-T %Y");
end case;
As you can see, no %Z, nor is it anywhere else in the file.
The easiest fix would be to remove "EST" from the comment, however, I would
prefer that the %Z field is supported.