From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62512 invoked by alias); 19 Dec 2018 20:57:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 62452 invoked by uid 89); 19 Dec 2018 20:57:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=concerning X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (85.215.255.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Dec 2018 20:57:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1545253047; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=/dU4tqAmFf7GfawTMLQd8wd3QuG5DLjmYZb1TWrI4Vs=; b=hUQ71zP/hdPnufa/pGjpUTC0atSZipfl/Lts7ImYfhY33jUNUtZU3v/TOivnwxdZOA kLqUauSnuZukUff/FQEjJcZI/fu9QcJs6xXGlCnChbE7VDcehE1flX8cHBNtoR77Sx4P o3oeRFRIyZYrehTomp9Packt3AgWlRnNA/9ZFliOq9HqFHNROEfMxDem2xQmEBIsdjPB gXVx8DBB68OpWSHaF/P3mPGY1+er43HdxEtsVcAAMdmgip8Cw5EuKpE+rrjof40Z2DaI WSW934Po0pkKRIaHM9/y+a+D+fSrpogyWrkLMKbXvu4w2bR1wi1q8LmAA0nLgWVRbU6c 3rtg== Received: from bruno.haible.de by smtp.strato.de (RZmta 44.8 DYNA|AUTH) with ESMTPSA id n0abdeuBJKvQLXu (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 19 Dec 2018 21:57:26 +0100 (CET) From: Bruno Haible To: Thomas Wolff Cc: cygwin@cygwin.com, Assaf Gordon Subject: Re: iswcntrl() regression Date: Wed, 19 Dec 2018 21:46:00 -0000 Message-ID: <6550638.IhVCuUnqCC@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-139-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20181219133711.GJ28727@calimero.vinschen.de> References: <24530320.43gEWRNkUz@omega> <20181219133711.GJ28727@calimero.vinschen.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2018-12/txt/msg00182.txt.bz2 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 , 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. 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