Skip to content

Commit ce77ce5

Browse files
committed
date: add ICU support for day/months names
Fixes: https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2130859
1 parent a877f6b commit ce77ce5

File tree

8 files changed

+498
-16
lines changed

8 files changed

+498
-16
lines changed

Cargo.lock

Lines changed: 139 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ gcd = "2.3"
329329
glob = "0.3.1"
330330
half = "2.4.1"
331331
hostname = "0.4"
332+
icu_calendar = "2.0.0"
332333
icu_collator = "2.0.0"
334+
icu_datetime = "2.0.0"
333335
icu_decimal = "2.0.0"
334336
icu_locale = "2.0.0"
335337
icu_provider = "2.0.0"

src/uu/date/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ workspace = true
1818
[lib]
1919
path = "src/date.rs"
2020

21+
[features]
22+
i18n-datetime = ["uucore/i18n-datetime", "icu_calendar"]
23+
2124
[dependencies]
2225
clap = { workspace = true }
2326
fluent = { workspace = true }
27+
icu_calendar = { workspace = true, optional = true }
2428
jiff = { workspace = true, features = [
2529
"tzdb-bundle-platform",
2630
"tzdb-zoneinfo",
2731
"tzdb-concatenated",
2832
] }
2933
parse_datetime = { workspace = true }
30-
uucore = { workspace = true, features = ["parser"] }
34+
uucore = { workspace = true, features = ["parser", "i18n-datetime"] }
3135

3236
[target.'cfg(unix)'.dependencies]
3337
nix = { workspace = true, features = ["time"] }

0 commit comments

Comments
 (0)