Austin Group Defect Tracker

Aardvark Mark III


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001184 [1003.1(2016)/Issue7+TC2] System Interfaces Objection Omission 2018-01-31 16:49 2018-02-01 09:19
Reporter dennisw View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Dennis Wölfing
Organization
User Reference
Section strftime
Page Number 2045
Line Number 65551-65557
Interp Status ---
Final Accepted Text
Summary 0001184: strftime %C padding character unspecified
Description The specification for the %C specifier says that when no minimum field width is specified, at least two characters will be placed. However it does not mention which character is used to pad the result when the year divided by 100 has only one digit, so the padding character is unspecified.

The C standard contains the wording
%C is replaced by the year divided by 100 and truncated to an integer, as a decimal number (00−99). [tm_year]

which makes clear that the number must be padded by '0'.
Desired Action On page 2045 line 65553-65555 section strftime, change:
If a minimum field width is not specified, the number of characters placed into the
array pointed to by s will be the number of digits in the year divided by 100 or two,
whichever is greater.

to:
If a minimum field width is not specified, the number of characters placed into the
array pointed to by s will be the number of digits in the year divided by 100 or two,
whichever is greater, and '0' shall be used as the padding character.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0003915)
geoffclare (manager)
2018-02-01 09:19

In addition to the desired action, we should also change page 2044 line 65521 from:

The default padding character is unspecified.

to:

The default padding character is unspecified, unless otherwise stated for a particular conversion specifier.

- Issue History
Date Modified Username Field Change
2018-01-31 16:49 dennisw New Issue
2018-01-31 16:49 dennisw Name => Dennis Wölfing
2018-01-31 16:49 dennisw Section => strftime
2018-01-31 16:49 dennisw Page Number => 2045
2018-01-31 16:49 dennisw Line Number => 65551-65557
2018-02-01 09:19 geoffclare Note Added: 0003915


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker