lsd-rs / lsd-rs/lsd

unaligned year and time with localized date

Open
#838 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

- os: Mageia
- `lsd --version`: compiled from ff3e48e
- `echo $TERM`: konsole-256color
- computer locale fr_FR.UTF-8

## Expected behavior
`\ls -rtl` display french month abbreviation (3 to 5 characters), elements after are aligned
![ls](https://user-images.githubusercontent.com/3328149/233854159-e8b89510-b7a2-42de-ab06-932201057369.png)

`lsd -rtl` 0.23.1 display english month abreviation (3 characters), elements after are aligned
![lsd-0 23 1](https://user-images.githubusercontent.com/3328149/233854227-0b1c61f7-6949-46aa-82c0-cb1078b9bc6a.png)

## Actual behavior
`~/.cargo/bin/lsd -rtl` latest version compiled from ff3e48e commit display french month abreviation (3 to 5 characters) but year and time after are not aligned
![lsd-ff3e48e](https://user-images.githubusercontent.com/3328149/233854305-f9b3acc4-dead-4529-9744-d6a79d775c62.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `lsd -rtl` under `fr_FR.UTF-8` and compare its long-list date formatting with `\ls -rtl`. Trace the code that formats localized month names and aligns the year or time columns. Done means localized output keeps the year and time aligned for month abbreviations of varying lengths, with a regression test if the existing test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, localization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.