From 3c20276087ad29127d18222162552bd3dcf36a47 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 20 Dec 2001 16:53:50 +0000 Subject: (usage, specify_sort_size): Accept 'K' (which is now preferred, as it connotes 1024) as well as 'k'. --- src/sort.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sort.c') 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) -- cgit v1.2.3-54-g00ecf