top -d now accepts non-local delay values
Merge request reports
Activity
If locale set with ',' as delimiter, scripts using '.' stop working. (eg. LANG=ru_RU.UTF-8)
Not even mentioning it is confusing. 'watch' and 'free' already support this (commit procps-ng/procps@1310a768)
It makes sense for 'top' to accept both independently on system locale setting.
Patch applicable also to newlib.
Hi Jan,
I've tried hard to ensure that top always honours the current LC_NUMERIC setting, even when the locale is changed between top invocations.
In my opinion, this problem is caused by a faulty script. Either it should have exported the proper locale or relied on a saved rcfile for the delay interval. Alternately, a simple wrapper script exporting an appropriate LC_NUMERIC would also have solved the problem.
Even so, I've decided to yield on this point and bring top into line with the watch and free programs.
I'll send a new patch to our mailing list that satisfies this "need". It will also address the following flaws in your solution:
- whitespace will be consistently used within each line
- existing indentation conventions will be followed
- new bugs allowing bad integers will be eliminated affecting
- 2 command line arguments (-n, -w)
- 6 interactive commands (3, n, k, r, X, Y)
- potentially echoed user input must never be altered
- the 'const char *' broken covenant will be restored
That's quite a list, Jan, considering so few lines of code.
Regards,
Jim
mentioned in commit d9c4b6b0
mentioned in commit 62da5ee3