Date: Sun, 20 Feb 2022 11:54:24 +0800 From: "xdavidwu" <xdavidwuph@...il.com> To: "Rich Felker" <dalias@...c.org> Cc: <musl@...ts.openwall.com> Subject: Re: [PATCH v2] fgetws: fix checking for fgetwc errors > As noted there (and also in Austin Group bug 1022, comment 4383), ISO > C has been amended to require the error indicator to be set for the > stream on encoding errors. > > This makes the stuff fgetws is doing to try to disambiguate the result > of fgetwc obsolete. We no longer need to poke at errno, just check > ferror. I think that means we can just revert > a90d9da1d1b14d81c4f93e1a6d1a686c3312e4ba. Does that look right? Yes, I think this is the best solution.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.