View Issue Details

IDProjectCategoryView StatusLast Update
0001769Issue 8 draftsSystem Interfacespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 3 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfputwc()
Page Number1009
Line Number34638
Final Accepted Text
Summary0001769: CX shading needed for fputwc() EILSEQ error indicator requirement
DescriptionAs a result of our liaison with the C committee regarding bug 0001022, C17 added a requirement for the stream error indicator to be set on fgetwc() EILSEQ errors. However, it not do the same for fputwc().

We raised this in a C23 ballot comment and the committee agreed to add the requirement to fputwc() in C23.

Since Issue 8 will reference C17, we need to add CX shading to the requirement; we should also mention the expected C23 change in rationale.
Desired ActionChange:
Otherwise, it shall return WEOF, the error indicator for the stream shall be set, [CX]and errno shall be set to indicate the error[/CX].
to:
Otherwise, it shall return WEOF, [CX]errno shall be set to indicate the error[/CX], and for errors other than [EILSEQ] the error indicator for the stream shall be set; [CX]the error indicator for the stream shall also be set for [EILSEQ] errors.[/CX]

On page 1010 line 34672 section fputwc(), change RATIONALE from "None" to:
The requirement to set the error indicator for the stream on [EILSEQ] errors is CX shaded because the ISO C standard does not require it to be set for fputwc() encoding errors, although it does for fgetwc(). The next revision of the ISO C standard is expected to address this inconsistency by requiring the error indicator for the stream to be set for fputwc() encoding errors.

Tagsapplied_after_i8d3, issue8

Relationships

related to 0001022 Closed 1003.1(2013)/Issue7+TC1 error indicator for encoding errors in fgetwc(3) 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-07-24 09:25 geoffclare New Issue
2023-07-24 09:25 geoffclare Name => Geoff Clare
2023-07-24 09:25 geoffclare Organization => The Open Group
2023-07-24 09:25 geoffclare Section => fputwc()
2023-07-24 09:25 geoffclare Page Number => 1009
2023-07-24 09:25 geoffclare Line Number => 34638
2023-07-24 09:25 geoffclare Relationship added related to 0001022
2023-07-27 15:13 Don Cragun Status New => Resolved
2023-07-27 15:13 Don Cragun Resolution Open => Accepted
2023-07-27 15:13 Don Cragun Tag Attached: issue8
2023-08-22 14:48 geoffclare Status Resolved => Applied
2023-08-22 14:48 geoffclare Tag Attached: applied_after_i8d3
2024-06-11 09:12 agadmin Status Applied => Closed