make fgetwc set error indicator for stream on encoding errors
authorRich Felker <dalias@aerifal.cx>
Mon, 6 May 2019 02:50:57 +0000 (22:50 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 6 May 2019 02:50:57 +0000 (22:50 -0400)
commit511d70738bce11a67219d0132ce725c323d00e4e
tree7b457530e14ffe5a339cf45ac6846b292026ff9c
parentd02e72ad51ea3b06cb168d872e3e5c126bb3df9d
make fgetwc set error indicator for stream on encoding errors

this is a requirement in POSIX that's omitted, and seemed potentially
non-conforming, in the C standard. as such it was omitted here.
however, as part of Austin Group issue #1170, the discrepancy was
raised with WG14 and determined to be unintended; future versions of
the C standard will require the error indicator to be set, as POSIX
does.
src/stdio/fgetwc.c