North American? ...

On 22/09/15 12:45 AM, Mark Kettenis wrote:
From: Christian Weisgerber <na...@mips.inka.de>
Date: Mon, 21 Sep 2015 14:29:03 +0000 (UTC)

On 2015-09-21, Stefan Sperling <s...@stsp.name> wrote:

The function that parses funny numbers is iswdigit() which gets a wchar_t.
But sleep(1) doesn't need that.

The sole somewhat realistic use of i18n in sleep(1) is the decimal
separator, so you could do

$ sleep 1,5

in an appropriate locale.  Of course the current code doesn't support
that.

And fortunately POSIX agrees with our implementation:

   The following operand shall be supported:

   time
         A non-negative decimal integer specifying the number of
         seconds for which to suspend execution.

You could argue that the thousands separator should be supported though:

   $ sleep 1.000.000

if your locale is something vaguely european, and

   # sleep 1,000,000

for the north-americans.

I grew up with "," separators as British Commonwealth, not
North American.  The Commonwealth does extend beyond Canada;
the British Empire precedes the USA; so you might just call
"," (as 10^3 separators) British, Commonwealth or non-Euro.

Douglas (Australia)

But let's not go there...

Reply via email to