summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-12-20 16:53:50 +0000
committerJim Meyering <jim@meyering.net>2001-12-20 16:53:50 +0000
commit3c20276087ad29127d18222162552bd3dcf36a47 (patch)
treea6c308495308d85030bbd0a55b84e0d74dda4690 /src
parent174e9df9c19bc60e44c89bc8ecad5038b3a5ad8a (diff)
downloadcoreutils-3c20276087ad29127d18222162552bd3dcf36a47.tar.xz
(usage, specify_sort_size): Accept 'K' (which is
now preferred, as it connotes 1024) as well as 'k'.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c
index b1adfdbca..3b3bbccb7 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -343,7 +343,7 @@ entire line as the key.\n\
SIZE may be followed by the following multiplicative suffixes:\n\
"), stdout);
fputs (_("\
-% 1% of memory, b 1, k 1024 (default), and so on for M, G, T, P, E, Z, Y.\n\
+% 1% of memory, b 1, K 1024 (default), and so on for M, G, T, P, E, Z, Y.\n\
\n\
With no FILE, or when FILE is -, read standard input.\n\
\n\
@@ -602,9 +602,9 @@ specify_sort_size (char const *s)
{
uintmax_t n;
char *suffix;
- enum strtol_error e = xstrtoumax (s, &suffix, 10, &n, "EgGkmMPtTYZ");
+ enum strtol_error e = xstrtoumax (s, &suffix, 10, &n, "EgGkKmMPtTYZ");
- /* The default unit is kB. */
+ /* The default unit is KiB. */
if (e == LONGINT_OK && ISDIGIT (suffix[-1]))
{
if (n <= UINTMAX_MAX / 1024)