On Sun, 27 Dec 2015 00:42:52 +0100, =?utf-8?Q?J=C3=A9r=C3=A9mie_Courr=C3=A8ges- Anglas?= wrote:
> The way I read it, [CX] here only affects the last part of the sentence, > > "and errno shall be set to indicate the error." > > (because the C standard doesn't require errno to be set in all error > cases.) > > Thus [CX] here doesn't apply to the part that speaks about the error > indicator. Correct, it is the setting of errno that is the extension as can be seen in the html version where that phrase is bracketed by the [Option Start] and [Option End] glyphs (see the alt text). Since POSIX defers to ISO C we should be following the ISO C standard with respect to behavior when an encoding error occurs. As such, I've changed my mind and now believe we should not be setting the error flag in those cases. - todd