From: Jim Meyering Date: Thu, 20 Dec 2001 16:53:50 +0000 (+0000) Subject: (usage, specify_sort_size): Accept 'K' (which is X-Git-Tag: FILEUTILS-4_1_5~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c20276087ad29127d18222162552bd3dcf36a47;p=platform%2Fupstream%2Fcoreutils.git (usage, specify_sort_size): Accept 'K' (which is now preferred, as it connotes 1024) as well as 'k'. --- diff --git a/src/sort.c b/src/sort.c index b1adfdb..3b3bbcc 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)