diff --git a/src/uu/date/Cargo.toml b/src/uu/date/Cargo.toml index c563e6c62..3cf27595e 100644 --- a/src/uu/date/Cargo.toml +++ b/src/uu/date/Cargo.toml @@ -20,7 +20,12 @@ path = "src/date.rs" [features] default = ["i18n-datetime"] -i18n-datetime = ["uucore/i18n-datetime", "dep:icu_calendar", "dep:icu_locale", "dep:jiff-icu"] +i18n-datetime = [ + "uucore/i18n-datetime", + "dep:icu_calendar", + "dep:icu_locale", + "dep:jiff-icu", +] [dependencies] clap = { workspace = true } diff --git a/src/uucore/Cargo.toml b/src/uucore/Cargo.toml index d4383d33f..d18d0630e 100644 --- a/src/uucore/Cargo.toml +++ b/src/uucore/Cargo.toml @@ -154,7 +154,13 @@ i18n-all = ["i18n-collator", "i18n-decimal", "i18n-datetime"] i18n-common = ["icu_locale"] i18n-collator = ["i18n-common", "icu_collator"] i18n-decimal = ["i18n-common", "icu_decimal", "icu_provider"] -i18n-datetime = ["i18n-common", "icu_calendar", "icu_datetime", "jiff-icu", "jiff"] +i18n-datetime = [ + "i18n-common", + "icu_calendar", + "icu_datetime", + "jiff-icu", + "jiff", +] mode = ["libc"] perms = ["entries", "libc", "walkdir"] buf-copy = [] diff --git a/tests/by-util/test_date.rs b/tests/by-util/test_date.rs index 9e5d931c8..3445d4c0a 100644 --- a/tests/by-util/test_date.rs +++ b/tests/by-util/test_date.rs @@ -1867,6 +1867,7 @@ fn test_date_thai_locale_solar_calendar() { assert!(rfc_output.starts_with(¤t_year.to_string())); } +#[cfg(unix)] fn check_date(locale: &str, date: &str, fmt: &str, expected: &str) { let actual = new_ucmd!() .env("LC_ALL", locale)