X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:cc:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=J+OipXpof115n65wfssodfCDbsz78XgTgdTzJZ4V71dLBoybMGP4E
	4hcQSXJkx128PwxhWVBUp6lRAM6XA5Xre3vovhO+7kpC3DHObyXFinfxv2m+fa3G
	xQDHWGm6BvClbht1z3WGOs+uNVSr3IojGr/ll/4UekfhQ5xm6Wgdpc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:cc:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=EmdNEUcyR+P87mKcEwWkjdGjuMA=; b=Q0IJRTDNfYlRSdqy8YZoAdz1+YSt
	vm9taUqj5ZBlkV9ySM9LIy2S9dEoIDGVsGnOq/Y+JnYtZ0yaAXm/G/UmhEmaNpgT
	ckQtptrAlhTJJTv5cx+hbS/Cq/80NZvC53cXSVME3U0bgC5eGBC1GEU2CJjdK3yj
	x6NfdlxcsyxIPyU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=UD:t, concerning
X-HELO: mout.kundenserver.de
Date: Sun, 6 Jan 2019 21:21:09 +0100
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
Message-ID: <20190106202109.GD4430@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: Thomas Wolff <towo@towo.net>, cygwin@cygwin.com,	Assaf Gordon <assafgordon@gmail.com>,	Bruno Haible <bruno@clisp.org>
References: <24530320.43gEWRNkUz@omega> <cd4691c0-da99-46b5-6001-594499a8d2fa@towo.net> <20181219133711.GJ28727@calimero.vinschen.de> <6550638.IhVCuUnqCC@omega>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="i7F3eY7HS/tUJxUd"
Content-Disposition: inline
In-Reply-To: <6550638.IhVCuUnqCC@omega>
User-Agent: Mutt/1.10.1 (2018-07-13)

--i7F3eY7HS/tUJxUd
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 19 21:57, Bruno Haible wrote:
> Hello Thomas,
>=20
> Oops 1: I forgot to add the reference to POSIX:
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/iswcntrl.html
>=20
> Oops 2:
> The relevant expression is iswcntrl (WEOF), not iswcntrl (EOF).
>=20
> > > Are there any other special requirements concerning EOF?
>=20
> 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 wc=
har_t.
> (Like EOF fits into 'int' but usually does not fit in 'unsigned char'.)
>=20
> WEOF is special for all functions declared in <wctype.h>, see
>=20
> 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
>=20
> 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
>=20
> > this could be fixed in iswcntrl_l.c as a special condition, or
> > injected as a special case in the categories.t table.
>=20
> Probably, yes.

Thomas, any input?  Are you going to provide patches?


Thanks,
Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--i7F3eY7HS/tUJxUd
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwyYzUACgkQ9TYGna5E
T6CdRRAAn4NTijFUybxxhG2bA7/7icAuZWJBry+poNzErxjmEGhkIoP8yn53cEKu
8IWcfJlCzudczrwnMhyT3v09jH4tG88kCCUVQpO+kpuVkatbnFKmkMT8tQi8/NR1
03GhsWVeuFZtrUF0/BbIJQvE9e5RNjy2Fn2mBUzSaDGSkm+kLxxkY8Vwfb04xkF/
GoTVq3C95PVr9kxz+5eaIlWuRMQcVrjXpdr4TXth6Hrz/OqlYJLghFzokT7zPVsv
2xdrigpD9p48js8aubIanNCc9zuQrf+zJGioyUVJKVJA6Iw5lsebXdOxmHUe3Rya
9ob3rg5uSSk1bBjYWgC1U6VrBdHoUQxPlil2BUdf+G5KUCB7QVDhC0U6+lp1zBH9
6r+Geu9WgCEgO5cU5nv/2mlrdXoWt55avcXdIBEFAqYbu1klmFzKQcc4ibhtw8tj
uyjroo58NRBtCUW/pc0YOwvQa1PhzKpbyVLVEyEsXvt0IZWbYsHEtVbFfmFy5LmV
RFQpzrUypjLhuHXhGMNeMJpsTD/n9TxiCGfkZpGkcMUqCouwKVwy1K9Mjt+I3O3C
D39f7AJJG91d/VSbn+lVJlLPSDE3gSSE/w+JJtjhKKLCKwW1LzNWyGzhfsrdFbit
pxkx6IDQymUDda4m0gcVLTK+52O3qB902tS6O00q6gL36bg1yRI=
=GogP
-----END PGP SIGNATURE-----

--i7F3eY7HS/tUJxUd--
