Anonymous | Login | 2023-12-07 10:01 UTC |
Main | My View | View Issues | Change Log | Docs |
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].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 valuesto: 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]. |
||||||
Tags | applied_after_i8d3, issue8 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |