Austin Group Defect Tracker

Aardvark Mark IV

Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001686 [Issue 8 drafts] System Interfaces Objection Error 2023-04-25 15:12 2023-07-06 10:34
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Applied   Product Version Draft 3
Name Geoff Clare
Organization The Open Group
User Reference
Section strtod(), wcstod()
Page Number 2159, 2383
Line Number 77264, 70631
Final Accepted Text
Summary 0001686: Missing CX shading for underflow ERANGE in strtod() and wcstod()
Description The strtod() page correctly has CX shading in the ERRORS section on the requirement for errno to be set ERANGE when the return value would underflow. (C17 says it is implementation-defined whether errno is set to ERANGE.)

However, the RETURN VALUE section also has a statement about this and it is missing the CX shading.

The wcstod() page is worse: it is missing the CX shading in both places.

A related inconsistency between strtod() and wcstod() is that for overflow, strtod() has a condition on the rounding mode whereas wcstod() does not. C17 states the same condition for both.
Desired Action On page 2159 line 70631 section strtod(), and
page 2383 line 77264 section wcstod(), change:
... shall be returned and errno set to [ERANGE].
... shall be returned [CX]and errno set to [ERANGE][/CX].

On page 2383 line 77260 section wcstod(), change:
If the correct value is outside the range of representable values
If the correct value would cause an overflow and default rounding is in effect

On page 2383 line 77268 section wcstod(), change:
The value to be returned would cause overflow or underflow.
The value to be returned would cause overflow and default rounding is in effect [CX]or the value to be returned would cause underflow[/CX].

Tags applied_after_i8d3, issue8
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2023-04-25 15:12 geoffclare New Issue
2023-04-25 15:12 geoffclare Name => Geoff Clare
2023-04-25 15:12 geoffclare Organization => The Open Group
2023-04-25 15:12 geoffclare Section => strtod(), wcstod()
2023-04-25 15:12 geoffclare Page Number => 2159, 2383
2023-04-25 15:12 geoffclare Line Number => 77264, 70631
2023-06-15 15:38 Don Cragun Status New => Resolved
2023-06-15 15:38 Don Cragun Resolution Open => Accepted
2023-06-15 15:39 Don Cragun Tag Attached: issue8
2023-07-06 10:34 geoffclare Status Resolved => Applied
2023-07-06 10:34 geoffclare Tag Attached: applied_after_i8d3

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