The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Richard Salz <rich.salz@gmail.com>
To: The Unix Heritage Society mailing list <tuhs@tuhs.org>
Subject: Re: [TUHS] Command options and complexity
Date: Sat, 14 Mar 2020 09:08:19 -0400	[thread overview]
Message-ID: <CAFH29toVW0xsPHNYC2+6w+30vwzSYDeaQxYSP58xjPa4uW9=fA@mail.gmail.com> (raw)
In-Reply-To: <m1jCwTM-0036tPC@more.local>

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

> 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.

[-- Attachment #2: Type: text/html, Size: 806 bytes --]

  reply	other threads:[~2020-03-14 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13  3:04 Doug McIlroy
2020-03-13  4:25 ` Greg 'groggy' Lehey
2020-03-14  2:24   ` Greg A. Woods
2020-03-14 13:08     ` Richard Salz [this message]
2020-03-13 19:48 ` Steffen Nurpmeso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFH29toVW0xsPHNYC2+6w+30vwzSYDeaQxYSP58xjPa4uW9=fA@mail.gmail.com' \
    --to=rich.salz@gmail.com \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).