Re: bug in btowc(0)

2010-04-06 Thread Corinna Vinschen
On Apr 5 16:49, Eric Blake wrote: > On the gnulib list, it was pointed out that cygwin btowc has a bug: > > +#include > +#include > +#include > +int main () > +{ > + if (btowc ('\0') != 0) > +return 1; > + return 0; > +} > > should have status 0, because NUL is an ASCII byte. Right now

bug in btowc(0)

2010-04-05 Thread Eric Blake
On the gnulib list, it was pointed out that cygwin btowc has a bug: +#include +#include +#include +int main () +{ + if (btowc ('\0') != 0) +return 1; + return 0; +} should have status 0, because NUL is an ASCII byte. Right now, btowc is mistakenly returning WEOF and this program has sta