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] |
Am 06.01.2019 um 23:39 schrieb Thomas Wolff:
Am 06.01.2019 um 21:21 schrieb Corinna Vinschen:Well, yes, now I'm assuming that this is the only WEOF special case and I'll look after it this week.On Dec 19 21:57, Bruno Haible wrote:Hello Thomas, Oops 1: I forgot to add the reference to POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswcntrl.html Oops 2: The relevant expression is iswcntrl (WEOF), not iswcntrl (EOF).Are there any other special requirements concerning EOF?WEOF is a special value. The difference between wint_t and wchar_t isessentially that WEOF fits into wint_t but is not guaranteed to fit in wchar_t.(Like EOF fits into 'int' but usually does not fit in 'unsigned char'.) WEOF is special for all functions declared in <wctype.h>, see http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswalnum.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswalpha.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswblank.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswcntrl.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswdigit.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswgraph.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswlower.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswprint.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswpunct.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswspace.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswupper.htmlhttp://pubs.opengroup.org/onlinepubs/9699919799/functions/iswxdigit.htmlhttp://pubs.opengroup.org/onlinepubs/9699919799/functions/iswctype.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/towlower.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/towupper.htmlhttp://pubs.opengroup.org/onlinepubs/9699919799/functions/towctrans.htmlthis could be fixed in iswcntrl_l.c as a special condition, or injected as a special case in the categories.t table.Probably, yes.Thomas, any input? Are you going to provide patches?Thomas
The fix should be as attached.However, I don't seem to be able to produce a git format patch; when I `git format-patch -1` (after `git pull` and modifying only the affected file) it produces a patch file
Subject: [PATCH] Cygwin: try_to_bin: don't check recycler filename all the time
... Signed-off-by: Corinna Vinschen <corinna@vinschen.de> --- winsup/cygwin/syscalls.cc | 71 +++++++++++++++++++++------------------ ... which is weird. Thomas
Attachment:
0001-iswcntrl-WEOF.patch
Description: Text document
-- 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] |