procps/man
Craig Small 2532b5d2dd ps: Add configurable date format for lstart field
The lstart field has been converted to use the strftime()
function so that it uses the locale. A new option -D
allows the user to define the format that would want this
field to show.

This may mean the field will be longer than it should be,
especially for French locales and the user defined field,
but the field length can be specified too.

---

This commit started off making all the relevant fields use the
locale correctly so it could solve #226 as well. The issue
is there an implied restriction (or not) around
strftime("%b") and probably strftime("%a") for abbrievated month
and day names respectively.

English, and some/most other languages put an additional
restriction that all abbreviations are 3 characters long.
The problem is, not all languages do this.

French is a good example:
janv. févr. mars avril mai juin juil. août sept. oct. nov. déc.

Maybe strip the . at the end?
 That helps for some months, not all
Maybe take the first three characters?
 Several wide languages will have big issues
Maybe convert wide, get wcslen then use that.
 Even after that June "juin" and July "juil" are both "jui".

So, anything that uses the month (bsdstart,start) use ctime which
doesn't use locale. That solves the length issue.

stime does, which means it has this issue but its been like that
for years. You get stuff like this:

janv.13 482261
00:00 1151918
 2022 1458628
06:12 1957584

The only way to fix that would be to
 a)Make the field two characters longer
 b)Convert it back to ctime() which means everyone else
   loses.

This could have be oh-so easy if everyone made %b and %a three
(wide) characters everywhere.

References:
 procps-ng/procps#228
 procps-ng/procps#226

Signed-off-by: Craig Small <csmall@dropbear.xyz>
2023-01-18 17:46:06 +11:00
..
free.1 doc: free.1 total memory doesn't include reserved memory 2023-01-16 17:29:36 +11:00
kill.1 docs: Minor manpage fixes 2023-01-16 18:29:50 +11:00
pgrep.1 docs: Minor manpage fixes 2023-01-16 18:29:50 +11:00
pidof.1 docs: Minor manpage fixes 2023-01-16 18:29:50 +11:00
pidwait.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
pkill.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
pmap.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
procio.3 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
procps_misc.3 docs: Update manpages 2022-08-29 20:56:43 +10:00
procps_pids.3 docs: Update manpages 2022-08-29 20:56:43 +10:00
procps.3 docs: Update manpages 2022-08-29 20:56:43 +10:00
ps.1 ps: Add configurable date format for lstart field 2023-01-18 17:46:06 +11:00
pwdx.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
skill.1 docs: Minor manpage fixes 2023-01-16 18:29:50 +11:00
slabtop.1 docs: Minor manpage fixes 2023-01-16 18:29:50 +11:00
snice.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
sysctl.8 docs: Minor manpage fixes 2023-01-16 18:29:50 +11:00
sysctl.conf.5 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
tload.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
top.1 doc: updated with library p-core/e-core identification 2022-09-28 17:30:56 +10:00
uptime.1 build-sys: Rearrange the manual pages 2022-08-29 18:07:43 +10:00
vmstat.8 docs: Cleanup vmstat.8 2023-01-18 17:35:44 +11:00
w.1 misc: Add NEWS for w --pids 2023-01-15 15:19:38 +11:00
watch.1 watch: add -r to not rexec on terminal resize 2023-01-17 20:45:48 +11:00