This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: iswcntrl() regression


On 19.12.2018 13:53, Bruno Haible wrote:
Hi,

POSIX [1] requires that iswcntrl (EOF) == 0.
Interesting special case, as EOF is not a character.
In newlib/libc/ctype, this could be fixed in iswcntrl_l.c as a special condition, or injected as a special case in the categories.t table.
Are there any other special requirements concerning EOF?
Thomas


This was true in         CYGWIN_NT-10.0 2.9.0(0.318/5/3) (x86_64)
but is no longer true in CYGWIN_NT-10.0 2.11.1(0.329/5/3) (x86_64).
(Reported by Assaf Gordon.)

Looking at the changes that occurred in the cygwin git between
2.9.0 (on 2017-08-03) and 2.11.1 (on 2018-08-31)
it appears to me that the culprit is the commit
41f72ab4d7c404b8ac2a5e1187d79164992e4483 (on 2018-03-09).

I would like to CC its author, Thomas Wolff, but he gave an invalid
email address <mintty@users.noreply.github.com> in the commit.

This regression was found by gnulib's test suite
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=tests/test-wctype-h.c

Bruno


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]