Commit 52985bf
fix(ls): force LC_TIME=C for locale-independent date parsing
The LS_DATE_RE regex expects English month names (Jan, Feb, etc.),
but ls -la output uses numeric months (5, 6, etc.) when the user's
locale sets LC_TIME to a non-English language.
This causes parse_ls_line() to fail on every line, making rtk ls
always return '(empty)' on such systems (e.g. Chinese locale).
Fix by setting LC_TIME=C before executing ls, ensuring the date
format is always 'May 3 12:23' regardless of system locale.
Fixes #(issue number if known)1 parent 4338f02 commit 52985bf
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
0 commit comments