The following issue has been SUBMITTED. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1769 
====================================================================== 
Reported By:                geoffclare
Assigned To:                
====================================================================== 
Project:                    Issue 8 drafts
Issue ID:                   1769
Category:                   System Interfaces
Type:                       Error
Severity:                   Objection
Priority:                   normal
Status:                     New
Name:                       Geoff Clare 
Organization:               The Open Group 
User Reference:              
Section:                    fputwc() 
Page Number:                1009 
Line Number:                34638 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2023-07-24 09:25 UTC
Last Modified:              2023-07-24 09:25 UTC
====================================================================== 
Summary:                    CX shading needed for fputwc() EILSEQ error
indicator requirement
Description: 
As a result of our liaison with the C committee regarding bug
https://austingroupbugs.net/view.php?id=1022,
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 Action: 
Change:<blockquote>Otherwise, it shall return WEOF, the error indicator for
the stream shall be set, [CX]and <i>errno</i> shall be set to indicate the
error[/CX].</blockquote>to:<blockquote>Otherwise, it shall return WEOF,
[CX]<i>errno</i> 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]</blockquote>
On page 1010 line 34672 section fputwc(), change RATIONALE from "None"
to:<blockquote>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 <i>fputwc</i>() encoding errors, although it does for
<i>fgetwc</i>(). 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 <i>fputwc</i>() encoding errors.</blockquote>

====================================================================== 

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           
======================================================================


  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to