diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-01-05 11:42:51 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-01-05 12:47:41 -0800 |
commit | e1ff4ee0f6d7490610ecc39d57c855818f6fd1f4 (patch) | |
tree | be1fff168d783507b9a5a816647b51ae00fda2b7 /NEWS | |
parent | 26bac321370acba2f651349dcc14beb37474a396 (diff) | |
download | coreutils-e1ff4ee0f6d7490610ecc39d57c855818f6fd1f4.tar.gz |
numfmt: add support for new SI prefixes
* src/dd, src/head.c, src/od.c, src/sort.c, src/stdbuf.c, src/tail.c:
(usage):
* src/system.h (emit_size_note):
Mention new SI prefixes.
* src/du.c (main):
* src/head.c (head_file):
* src/numfmt.c (suffix_power, suffix_power_char, prepare_padded_number):
* src/shred.c (main):
* src/sort.c (unit_order):
* src/tail.c (parse_options):
Support new SI prefixes.
* src/numfmt.c (MAX_ACCEPTABLE_DIGITS): Increase to 33.
(zero_and_valid_suffixes, valid_suffixes): New constants,
with new SI prefixes.
(valid_suffix, unit_to_umax): Use them.
(prepare_padded_number): Diagnose "999Q" instead of "999Y".
* tests/misc/numfmt.pl, tests/misc/sort.pl:
Adjust tests to match new max.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -48,6 +48,12 @@ GNU coreutils NEWS -*- outline -*- ** Changes in behavior + Programs now use the new SI prefixes R (10**27) and Q (10**30) + along with their binary counterparts Ri (2**90) and Qi (2**100). + In some cases (e.g., 'sort -h') these new prefixes simply work; + in others, where they exceed integer width limits, they now elicit + the same integer overflow diagnostics as other large prefixes. + 'cp --reflink=always A B' no longer leaves behind a newly created empty file B merely because copy-on-write clones are not supported. |