GNU bug report logs -
#36729
27.0.50; Unclear total in directory listing
Previous Next
Reported by: Mattias EngdegÄrd <mattiase <at> acm.org>
Date: Fri, 19 Jul 2019 10:41:01 UTC
Severity: minor
Tags: patch, wontfix
Merged with 44273
Found in version 27.0.50
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Sat, 22 Aug 2020 16:02:28 +0200 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
>> An alternative is to do for "total used" what was done for "available".
>> On systems that use `ls' (at least the GNU version), users can do that
>> by setting the environment variable BLOCK_SIZE, but since the change to
>> the display of "available" was unconditional (if I'm not mistaken), we
>> could do the same for the display of "total used", e.g. as in the below
>> patch.
>
> [...]
>
>> + (block-size (getenv "BLOCK_SIZE"))
>> end)
>> + (setenv "BLOCK_SIZE" "si")
>
> [...]
>
>> - (dired-insert-set-properties content-point (point)))))
>> + (dired-insert-set-properties content-point (point)))
>> + (if block-size
>> + (setenv "BLOCK_SIZE" block-size)
>> + (setenv-internal process-environment "BLOCK_SIZE" nil t))))
>
> Makes sense to me, but this should probably be protected by an
> `unwind-protect' to ensure that things get properly reset.
Yes, but since this idea won't work with all ls implementations, I
assumed it's not worth pursuing.
Steve Berman
This bug report was last modified 3 years and 260 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.