bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Daniel Callejas Sevilla <daniel.callejas.sevilla@gmail.com>
To: 47103@debbugs.gnu.org
Subject: bug#47103: numfmt: invalid suffix 'k'
Date: Fri, 12 Mar 2021 17:12:13 +0100	[thread overview]
Message-ID: <CAMoAZbHHZ=3+GkUU+r9Rx1tRpEROAv55Ov-5CvZb2QYhTh7mgw@mail.gmail.com> (raw)

Hello,

the SI prefix for 'a thousand' is a lowercase k and not an uppercase K [1].

The default behavior of numfmt with '--from=si' option is therefore
contrary to expectation:

$ numfmt --from=si
 500k    # Should be accepted as valid SI
 numfmt: invalid suffix in input: ‘500k’

$ numfmt --from=si
 500K    # Should result in error, 'K' stands for kelvin unit.
 500000

$ numfmt --version
 numfmt (GNU coreutils) 8.26
 Packaged by Cygwin (8.26-2)
 Copyright (C) 2016 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.

 Written by Assaf Gordon.


Best regards,
Daniel.

[1] Page 143 of https://www.bipm.org/en/publications/si-brochure/




             reply	other threads:[~2021-03-12 16:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 16:12 Daniel Callejas Sevilla [this message]
2023-11-25 21:27 ` bug#47103: numfmt: invalid suffix 'k' Sven Köhler
2023-11-26 14:57   ` Pádraig Brady
2023-11-26 16:09     ` Sven Köhler
2023-11-26 16:59       ` Pádraig Brady
2023-11-26 17:12       ` Glenn Golden

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

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

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

  git send-email \
    --in-reply-to='CAMoAZbHHZ=3+GkUU+r9Rx1tRpEROAv55Ov-5CvZb2QYhTh7mgw@mail.gmail.com' \
    --to=daniel.callejas.sevilla@gmail.com \
    --cc=47103@debbugs.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).