View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001686 | Issue 8 drafts | System Interfaces | public | 2023-04-25 15:12 | 2024-06-11 09:12 |
Reporter | geoffclare | Assigned To | |||
Priority | normal | Severity | Objection | Type | Error |
Status | Closed | Resolution | Accepted | ||
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 |
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 |