public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: Thomas Wolff <towo@towo.net>
Cc: cygwin@cygwin.com, Assaf Gordon <assafgordon@gmail.com>,
	Bruno Haible <bruno@clisp.org>
Subject: Re: iswcntrl() regression
Date: Sun, 06 Jan 2019 20:21:00 -0000	[thread overview]
Message-ID: <20190106202109.GD4430@calimero.vinschen.de> (raw)
In-Reply-To: <6550638.IhVCuUnqCC@omega>

[-- Attachment #1: Type: text/plain, Size: 2125 bytes --]

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 is
> essentially 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.html
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswxdigit.html
> http://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.html
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/towctrans.html
> 
> > this 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?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2019-01-06 20:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-19 13:25 Bruno Haible
2018-12-19 13:29 ` Thomas Wolff
2018-12-19 13:39   ` Corinna Vinschen
2018-12-19 21:46     ` Bruno Haible
2019-01-06 20:21       ` Corinna Vinschen [this message]
2019-01-06 22:39         ` Thomas Wolff
2019-01-11  1:07           ` Thomas Wolff
2019-01-11  9:16             ` Corinna Vinschen
2019-01-12 11:39               ` Thomas Wolff
2019-01-08 22:56     ` Wong, Samuel
2019-01-09 23:46       ` Unsubscribing from Cygwin Mailing List (was: iswcntrl() regression) Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190106202109.GD4430@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=assafgordon@gmail.com \
    --cc=bruno@clisp.org \
    --cc=cygwin@cygwin.com \
    --cc=towo@towo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).