From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by sourceware.org (Postfix) with ESMTPS id 948CF385840E for ; Wed, 24 Nov 2021 09:25:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 948CF385840E Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N7zJj-1mcbF212f5-0151eq for ; Wed, 24 Nov 2021 10:25:47 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 713E9A80D65; Wed, 24 Nov 2021 10:25:46 +0100 (CET) Date: Wed, 24 Nov 2021 10:25:46 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: raise(-1) has stopped returning an error recently Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <42c9bb90-dd78-edfa-99ff-f65f7e000956@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:NDtYsoe/PlBhyKiu48Vrs9ce+b1PDwNfFo8OHT74Y2QtYawVowJ in3X1hLHPMTWQ9jrx5CN2Bma4JV2jhh1olHHwYUIyzq/iULR08p/RN5x2hM1raIZkizKq5j SR5Ieg/cCA1SrHMaq5Uy/avulpcBWqUUiwPAvVgteF5hZxSZOC/2ukaDk+ali0ERFRZg9BO ODtmCsSUr9LYWrO9J/1iA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Qyz67/vTl40=:iDNRXajxKVxJjxD2lcGLsJ 8En2uxM+1EHm2wzctTgGHlkbBo6EBH9LGH5kBoPSVv9NtJArHAbfdREnw7MHGKIT5iF9dFeLh 2FX/TgbL1jjwWX5+nP0x3STVAy+4/mXSluIg1Flbn+Di5wsJChpT1tfpejonWXj2Br0UrXeJl TQgSe+PzrwknoztusipIYx8u6pdaVjpDg1Wx9si0rrBZKONr49Qwp8eZxopBpAWY634c99N52 Nd5md44v+u7w+XeaEGxYdh1FQP1sWiT6jPB59EBOIpFDCQKtAltINR69ST0eZAjTqiSeed/Wr +21PNPyFJuk1Jh6ujZL5v9Vh8l9431gxclMOfay/Cuw7w+KSoX27CziuJORRnxKOKXyPRGTYE 4ON2lJUT5ztoePN4ZjGPPYcrnkE3kood3jGVRgLJa0jh8/56f6HgaFWcmDKt3jAr+UCfqVtA1 QyNJwU0tmBGSbzto2G8qklA+5d6vJmrLELAgUmuPHMCyEx64dNJvk7f27vvq86jUyBTK0Aa8+ +il48zULW/1VGmOW/BqGAQvA8w871DtYfHEtARh+BqzFYpkmW8//Z/XUsuW9/jYX5QF0K+JaH n2LAUQerrAQZg1qnuIhcmgwt/xVGkxI+SqNZav0aVIq6EYXCEk5yvVPnDQOmly1soP2s4M7ut cyIIj0d4CrJkgDEl/vhv7Ii2AEik1jY5D22CG1eMsx3UlxFtxUxKb/dG+UGJtIBl6ltG9Au61 etOLFt8zgBlMd28o X-Spam-Status: No, score=-99.4 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2021 09:25:50 -0000 On Nov 24 09:36, Duncan Roe wrote: > On Tue, Nov 23, 2021 at 11:18:25AM -0700, Brian Inglis wrote: > > > On Nov 23 19:27, Duncan Roe wrote: > > > > Btw to whoever maintains grep for cygwin: 'make check' should pass on > > > > next release (I patched out the surrogate-pair failre). > > > > I had no problems with test-raise last release. > > I don't remember having a problem with it even a few weeks ago. > > > I did with surrogate pairs but after spending too much time on all the test > > infrastructure around that, decided it was a low probability event, and wait > > until anyone complains to refer it upstream. > > I wasted time on that too. That's why I patched surrogate-pair to not do its 3rd > test if 'uname -s' indicates Cygwin. > > For the full story, see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27555#5 What is that "permanent restriction" in Cygwin? Is that something we could fix or something unfixable? Did you try to debug Cygwin in terms of that problem? If not, could you extract a reduced, very simple stand-alone testcase for further debugging? > > Do Cygwin and/or Windows support surrogate pairs in UTF-8? You mean UTF-16. UTF-8 doesn't know surrogate pairs, UTF-16 does. Originally there was UCS-2, 16 bits, with only 65536 code points. However, Unicode left the BMP already with version 2.0 in 1996, so UTF-16 and surrogate pairs became necessary. Windows as well as Cygwin support them. > There are 3 tests in surrogate-pair and only the 3rd one failed. So I guess > surrogate pairs in UTF-8 "mostly work". UTF-16. The surrogate stuff is evil at times. Have a look at the __utf8_wctomb function in https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/stdlib/wctomb_r.c Lone surrogate halfs in an input stream are a problem, for instance. Corinna