From: Alejandro Colomar <alx.manpages@gmail.com>
To: Guillem Jover <guillem@hadrons.org>,
Lennart Jablonka <vol@ljabl.com>,
"G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH] man*/: ffix
Date: Tue, 18 Apr 2023 22:48:04 +0200 [thread overview]
Message-ID: <fe9666d9-a4af-84fb-e709-da5e812ee529@gmail.com> (raw)
In-Reply-To: <ZD7UEaKv9Gvui9ib@beryllium>
[-- Attachment #1.1: Type: text/plain, Size: 2060 bytes --]
Hi Lennart, Branden, and Guillem,
On 4/18/23 19:32, Lennart Jablonka wrote:
> Quoth Alejandro Colomar:
>>>> What do standards say about formatting dates?
>>>
>>> Nothing that I know of.
>>>
>>>> Do they specify the character?
>>>
>>> Not that I know of.
>
> ISO 8601:2004 (not the newest revision, but the one I found), the
> standard defining the YYYY‐MM‐DD explicitly calls for a “hyphen,”
> stating additionally:
>
>> In an environment where use is made of a character repertoire based on
>> ISO/IEC 646, “hyphen” and “minus” are both mapped onto “hyphen-minus”.
>
> This is not the case here. A hyphen is the character to use; that is,
> an unescaped hyphen-minus in the input.
Agreed. Let's use hyphen for dates. :)
Thanks for checking ISO!
[...]
>>>> However, date(1) only accepts hyphen-minus, so it would be nice to use
>>>> a compatible format, even if standards didn't mandate it.
>
> The standard mandates a hyphen. A hyphen-minus is to be used where the
> date is to be interpreted as a string to be given to \fIdate\fP.
[...]
>> I'm not convinced, because dates are not prose. Why should we use hyphens
>> in dates formatted with standards-like formats? I would agree in using
>> hyphens in dates if we spelled out dates unformatted, in plain English.
>> But if we use ISO-like or RFC-like formats, I think we should adhere to
>> them completely.
>
> Great! Exactly my opinion. An RFC usually tells you to use ASCII, so
> we should do that where applicable. Luckily, we aren’t concerned with
> RFCs here, but with ISO 8601.
>
Guillem, I'll apply your existing patch, and will remove manually the bits
about hyphen-minus. You don't need to resend.
If you know about places where the man pages use hyphen-minus in dates and
would like to send a patch to remove the escape (so to produce a hyphen),
I'd appreciate that.
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-04-18 20:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-16 23:19 [PATCH] man*/: ffix Guillem Jover
2023-04-16 23:51 ` G. Branden Robinson
2023-04-17 18:14 ` Alejandro Colomar
2023-04-17 21:10 ` G. Branden Robinson
2023-04-18 13:33 ` Alejandro Colomar
2023-04-18 17:32 ` Lennart Jablonka
2023-04-18 20:48 ` Alejandro Colomar [this message]
2023-04-19 6:34 ` G. Branden Robinson
2023-04-18 0:27 ` Guillem Jover
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=fe9666d9-a4af-84fb-e709-da5e812ee529@gmail.com \
--to=alx.manpages@gmail.com \
--cc=g.branden.robinson@gmail.com \
--cc=guillem@hadrons.org \
--cc=linux-man@vger.kernel.org \
--cc=vol@ljabl.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.