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 19556 invoked from network); 25 Apr 2021 20:17:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Apr 2021 20:17:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619381874; b=GxVeAVgOimO2zFtLXeL8ALm4IZhVvzt6jSfyBLjii7Mhz+mMvMjmBeKJB0eqpd8Yi7YRRQ3ENP ZkkPxceAN5grDpnPvdOY2/DEP4NDgmUNJ56HFh7g7rmnMh9N6rZXZVp0SOiAWH/blnTMWOigdN cPYcBFaVKmEh/YFMQnFzEHQDCTGWt5eryRLI5xizymcUTmWOqVPPm9yitBNdySfrxlzIGZ7FIJ JXAydyuo4hEiugsy6FeAbJH/NDtEpkDY4G7u9JExDhPnRc4LUQ6ySBBVlfIKV3APgWBwXQGi0Z l4lltm7Lg2uy4NoT4fjN7mZ59ssxDGJHAE0BG2G1c4z+bA==; 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=1619381874; bh=fb6xDvbYr7TJzzwXqXLtludhsxebSd63H0WQS0T9uGs=; 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=bL0+iiCr+zY28g3BrFB/KbQBKzd4mDT5L+mLQljHZJwF7S/fF952jxLLObC1M17qGGIz98kEtW B/xVSUfIiAivb3AlaYHg3cbcUananstPx5PnPLnHgffiXnO8/VhoqSoMfxSDAWh7i7sm96YbzO M+kKwrLmm8ZdIgzUz2wpMxL0KYxCFrbIm7H0idPbuzZjo5oyinr7ujwP0TbZ0KTUQ8no6Le+JV PKpVkEmtss2oIz++0A4dqGJFW6iXVKRNIL5EV5PcF8ub6Zse7fif+W7BY23tVQxf3/POZCmnpN FRuJNtYfIq82ZGYCjCC/Nm0Zq9wHvzD30Cl4yF/RrVSP5w==; 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=Oe5TQksMBtk1C7cecXgZXREmgbJ6191bvhKqZTqF+Jc=; b=vQYM7IT44LrcMabQbiGP9+9Jnx pwvaDp7eBkouNWmvnUlvvgQklw5jIQt50qaKtPrtIYeprv77DwwLBMYgZ8HlRqN5/k6wngjgKJqm1 OSWF8IzO4Ad2lQXMlYTrmZeEt3ttIBHJKqnFFcpnyrXAlybaF37gDtoI9rYaqYlLixozFZLU9JSK8 iQkgm4Co219+XG7+/BkGS1l8PfepbFWk1//v1M5yqGZltlgL9yUyb4+QfvD8RpsOLwMvb0d7INyNg hRVsg3jGk1xbdXe068ndEX/+iEXX6sVJmiPHISVpSa5ZXo52yhDYZt5Q4cl58jq7v4HoUnW17ggWM XrIb/A5A==; Received: from authenticated user by zero.zsh.org with local id 1lalCO-000MWw-B6; Sun, 25 Apr 2021 20:17:48 +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]:54052) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lalCA-000MIk-I1; Sun, 25 Apr 2021 20:17:35 +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 DE3533BA; Sun, 25 Apr 2021 22:17:32 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 7DA7EC2202E; Sun, 25 Apr 2021 22:17:30 +0200 (CEST) Date: Sun, 25 Apr 2021 22:17:30 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: sh emulation POSIX non-conformances ("inf"/"Inf" in arithmetic expressions) Message-ID: <20210425201730.GA3907643@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20210411193154.zkekzvb4o6xmriwo@chazelas.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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: 48708 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-24 19:18:25 -0700, Bart Schaefer wrote: > On Sat, Apr 24, 2021 at 4:03 PM Vincent Lefevre wrote: > > > > both for the behavior and documentation, be careful with the > > locales, in particular in Turkish ones. I don't know whether > > this is expected in zsh, but... > > > > zira% zsh -fc 'export LC_ALL=fr_FR.utf8; echo $((Inf)) $((inf))' > > Inf Inf > > zira% zsh -fc 'export LC_ALL=tr_TR.utf8; echo $((Inf)) $((inf))' > > Inf 0 > > schaefer[856] ls -ld /usr/share/i18n/locales/tr_TR > -rw-r--r-- 1 root root 168368 Dec 16 03:04 /usr/share/i18n/locales/tr_TR > schaefer[857] Src/zsh -fc 'export LC_ALL=tr_TR.utf8; echo $((Inf)) $((inf))' > Inf Inf > > ?? You may have non-standard Turkish locales, because the following line in math.c is obviously incorrect: else if (strncasecmp(p, "Inf", 3) == 0) { -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)