View Issue Details

IDProjectCategoryView StatusLast Update
0001686Issue 8 draftsSystem Interfacespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 3 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionstrtod(), wcstod()
Page Number2159, 2383
Line Number77264, 70631
Final Accepted Text
Summary0001686: Missing CX shading for underflow ERANGE in strtod() and wcstod()
DescriptionThe 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 ActionOn page 2159 line 70631 section strtod(), and
page 2383 line 77264 section wcstod(), change:
... shall be returned and errno set to [ERANGE].
to:
... 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
to:
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.
to:
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].

Tagsapplied_after_i8d3, issue8

Activities

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
2024-06-11 09:12 agadmin Status Applied => Closed