From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 28599 invoked from network); 14 Mar 2020 13:09:04 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from unknown (HELO minnie.tuhs.org) (45.79.103.53) by inbox.vuxu.org with ESMTP; 14 Mar 2020 13:09:04 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 428B99CD83; Sat, 14 Mar 2020 23:09:02 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 53CA29CD73; Sat, 14 Mar 2020 23:08:36 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JeoJzJN9"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 639EA9CD60; Sat, 14 Mar 2020 23:08:33 +1000 (AEST) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by minnie.tuhs.org (Postfix) with ESMTPS id C456B9CD5F for ; Sat, 14 Mar 2020 23:08:32 +1000 (AEST) Received: by mail-lj1-f176.google.com with SMTP id r7so13588415ljp.10 for ; Sat, 14 Mar 2020 06:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=dQP+sdrqmHF/kgc4PhmxMoDmbEgeH/UlipT54B7s860=; b=JeoJzJN9Gsssq94hbhR6/xJAeSuY9EdbwKWo7kONExkdCBQU4kBKF8Fesp0w+Kwi3a 85tOgajhuKRwkTq/CCcBKm5BjZAfZrmz8uhIxsmNtZiC/yGXJnfszoE7szdaXJlRWJZV Zrv88V6+ocxBZKtGOZ5+8+nnohXYFjWu6Qg0sMSvuXkYJRH0525KmOjiCdD/rz7pof11 2KhP6shzdFcobAnJHqilpQOnKMMqACeZ7c0K5OM0Vd2MHrYmYhcujpiHlQ3v+mK1Y9Y9 ZKH8r8D5fsKi5EYL5sdaCY+88J86iA7HbhqqNrvkmpklTCgWfcbJbbn0aH4oqoAukWuy zvzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=dQP+sdrqmHF/kgc4PhmxMoDmbEgeH/UlipT54B7s860=; b=esSih3RZoOp6yXXNgi0A80pEGTntpm0MOPkatUxYCOXTePEp5RF/et3F/G//08/HaN PPYEVpbqid+21+Uw7delI51CgZ2Wn335QQ5db8nMo2atdfDYNq2IS2SxxWKXGFmWAGhw XvCj3uKEOngY9SufeioaB0yOcbyK8NBsl2WhElYZ7NFyTzysTiGOqgp8RxfjVp243GIk 0Nj8UOkcNYaoDEdyvBB6rDrjrZbO0wW/19Cfcx8rgY2kc7D4s7nD8UN2OSAlBD+teEKQ aGZQaYaYC5Sb+Yqr+L0prdIl7npIhYDm9zWTG3+1vsf/w0+4vupdOZtt+zo3GC60RcpN AryA== X-Gm-Message-State: ANhLgQ3rZlvwOdkf1ZfW/kAoi4FzEFQ1h6Sq0gopMbEC5NR4vOA6xVSx lsff90ecNmR3xFyChMxrpLdEWfV9Apa3q/mcF2lbRJJ+ X-Google-Smtp-Source: ADFU+vt6dCy883xvn4UK6DxwIbnjoQUmu7EWCiIzysDZhejej4rBngqfCRMeHzs3gll/BeXn6rZf8c/DlnnnP3o3++o= X-Received: by 2002:a2e:a556:: with SMTP id e22mr11240513ljn.130.1584191310544; Sat, 14 Mar 2020 06:08:30 -0700 (PDT) MIME-Version: 1.0 References: <202003130304.02D343ok099975@tahoe.cs.Dartmouth.EDU> <20200313042527.GA44529@eureka.lemis.com> In-Reply-To: From: Richard Salz Date: Sat, 14 Mar 2020 09:08:19 -0400 Message-ID: To: The Unix Heritage Society mailing list Content-Type: multipart/alternative; boundary="00000000000052456305a0d048c7" Subject: Re: [TUHS] Command options and complexity X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000052456305a0d048c7 Content-Type: text/plain; charset="UTF-8" > It would make sense if scanf() had the equivalent flag to printf() to > make number printing and parsing at least potentially orthogonal. > That is not an easy thing to do because of local (er, locale:) conventions. See https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html for examples. Having a canonical input and output format, which is converted by filters just before/after the human sees the numbers, seems the only way to make this work globally. --00000000000052456305a0d048c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

It would make sense if scanf() had the equivalent flag to printf() to
make number printing and parsing at least potentially orthogonal.

That is not an easy thing to do because of local= (er, locale:) conventions.=C2=A0 See https://docs.oracle.com/cd/E1945= 5-01/806-0169/overview-9/index.html for examples.

<= div>Having a canonical input and output format, which is converted by filte= rs just before/after the human sees the numbers, seems the only way to make= this work globally.
--00000000000052456305a0d048c7--