From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20147 invoked from network); 26 Apr 2021 10:34:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2021 10:34:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619433292; b=L9XmmHZdGO31ECto2kpT5vAxmRDRyofEHlU+TfbizjFgGxVgIptg7GJoeoJT4skErgte7kMj0E iUnMlXiP5P18s1rQad2x8zzJKRV+C2ctSTFrYfP4kVqq3foa1nfAp+Yq1dJN9Lsc5rPt/Cm3qX V9IlSaAniyiWh+5XqVClNS1dgaFisXDxV92QIz5nhQEK4I+ONsrhHMkau4E5poFxwuKiDRQgJQ M9Xw28A//Af6dN421aKSxdUD4NQvnHx8sU649B6dYU+CBaYwKwepeJBYQY9d20Ezof9H1gRwSr ohxMgW/YDQp5DTw2JZhZUvo2z4BR76vS6rlZtc5pJNtWhA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619433292; bh=BSJ4/TyMAVcDd0vo9ns8oAccZLpJMF4cNZeI/QUlHrw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=XfhHRH3cY0fqM//ewq2FUTFS98aFI6Tn4DOkN6vwLaQfAAdLlbLZdGKCV55SuCW6ZEzQWuJo36 skaNd+210TB/v/atANnLQv4untawxj3L0XppmWnTPsxG8f5Npfswn0c26LZyxArCD0EsycJStV rssEPIjOFlJyQzN2qzFZDwHE9S2l0LRO5ECq5V3lqOsjj3qihTpDwPyNkQxngr7bxTKaExxYuA fe2u+SLRZ7XZzWDSJr6ff4vuzLq4ofh5pDZtSZFIS42dSCPXws9az6OY3J1Tavw0tZhp/qCaK+ GyZavi/nGsFBF7YgbVUYaKztqtAIdlDjzsWwdfs4cnqfaw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=+dAEvjAIZKgrM6oaLFSAppM6SzYLzozSNRfnq6kDiug=; b=0uxt5WLbU7lpm5hkU/8yRD0wQH 7RKErgIYlLGryKmYrsiDGaUExPEWSrTS7eRVVXvX+dcOSTUuafX+k72NQAL/hq8VajTvp9GTmry9x KGEM/ykNwYw9oNmFoOfvdkWMDjkCTzPxodZwmoxnQLHY3O/9jqvvzPVIceTlqL30lkkCpvpbQ6pFd 3eX0ICbFXXDBDLRIpY+lWBwwB8Q6Kn6P9W2TxiiuM2k5Q64WHVvIBGFRYdJK/yiOEZHZJL6c0Aw4/ Kua+hjNhibHS3dX2XHAE26OyFI02mk6aCIROA8SrGMKiVnLCkM6Z+uQrvAOBqzzoHPb2bV4g6YXw8 HStrEdAQ==; Received: from authenticated user by zero.zsh.org with local id 1layZn-000LSI-6r; Mon, 26 Apr 2021 10:34:51 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:54278) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1layZZ-000LCu-D7; Mon, 26 Apr 2021 10:34:38 +0000 Received: from smtp-zira.vinc17.net (lfbn-tou-1-1431-42.w90-89.abo.wanadoo.fr [90.89.233.42]) by joooj.vinc17.net (Postfix) with ESMTPSA id 0F5A982; Mon, 26 Apr 2021 12:34:37 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id A9956C20ED6; Mon, 26 Apr 2021 12:34:36 +0200 (CEST) Date: Mon, 26 Apr 2021 12:34:36 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: sh emulation POSIX non-conformances ("inf"/"Inf" in arithmetic expressions) Message-ID: <20210426103436.GA3949742@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20210413071742.tisslgg5fdqbageg@chazelas.org> <20210422153100.GD154089@zira.vinc17.org> <20210423164525.GA2033191@zira.vinc17.org> <55222-1619218004.791735@3FXq.NU49.vlrg> <20210424230219.GD2587578@zira.vinc17.org> <20210425201730.GA3907643@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.0.6+162 (8b7dd25b) vl-137001 (2021-04-24) X-Seq: 48715 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2021-04-25 15:00:03 -0700, Bart Schaefer wrote: > On Sun, Apr 25, 2021 at 1:18 PM Vincent Lefevre wrote: > > > > math.c is obviously incorrect: > > > > else if (strncasecmp(p, "Inf", 3) == 0) { > > What should it (and the corresponding NaN line) be, then? This depends on the expected behavior: Should it match only [Ii][Nn][Ff], or also the lowercase and uppercase versions? ... so that in Turkish locales under Debian: [Iıİi][Nn][Ff], i.e. also with U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE U+0131 LATIN SMALL LETTER DOTLESS I -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)