The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1686 ====================================================================== Reported By: geoffclare Assigned To: ====================================================================== Project: Issue 8 drafts Issue ID: 1686 Category: System Interfaces Type: Error Severity: Objection Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section: strtod(), wcstod() Page Number: 2159, 2383 Line Number: 77264, 70631 Final Accepted Text: ====================================================================== Date Submitted: 2023-04-25 15:12 UTC Last Modified: 2023-04-25 15:12 UTC ====================================================================== Summary: 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:<blockquote>... shall be returned and errno set to [ERANGE].</blockquote>to:<blockquote>... shall be returned [CX]and errno set to [ERANGE][/CX].</blockquote> On page 2383 line 77260 section wcstod(), change:<blockquote>If the correct value is outside the range of representable values</blockquote>to:<blockquote>If the correct value would cause an overflow and default rounding is in effect</blockquote> On page 2383 line 77268 section wcstod(), change:<blockquote>The value to be returned would cause overflow or underflow.</blockquote>to:<blockquote>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].</blockquote> ====================================================================== 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 ======================================================================