From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29717 invoked by alias); 6 Jan 2019 22:39:45 -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 29702 invoked by uid 89); 6 Jan 2019 22:39:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Jan 2019 22:39:43 +0000 Received: from [192.168.178.45] ([95.91.242.178]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N32y5-1hRp7G21jJ-013Ldv; Sun, 06 Jan 2019 23:39:39 +0100 Subject: Re: iswcntrl() regression To: cygwin@cygwin.com, Assaf Gordon , Bruno Haible References: <24530320.43gEWRNkUz@omega> <20181219133711.GJ28727@calimero.vinschen.de> <6550638.IhVCuUnqCC@omega> <20190106202109.GD4430@calimero.vinschen.de> From: Thomas Wolff Message-ID: <8758e963-7f32-a3f4-4d66-ce0d0c5f831e@towo.net> Date: Sun, 06 Jan 2019 22:39:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190106202109.GD4430@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00023.txt.bz2 Am 06.01.2019 um 21:21 schrieb Corinna Vinschen: > 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 , 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? Well, yes, now I'm assuming that this is the only WEOF special case and I'll look after it this week. Thomas -- 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