mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-22 07:21:55 +00:00
tests/printf: Skip locale test on musl
It does not provide a `locale`, so we can't list the locales.
This commit is contained in:
parent
217486e547
commit
a84d22b926
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ printf '%e\n' "2,34" # should fail
|
|||
# Try to use one of several locales that use a comma as the decimal mark
|
||||
# rather than the period used in english speaking locales. If we don't find
|
||||
# one installed we simply don't run this test.
|
||||
set -l locales (locale -a)
|
||||
#
|
||||
# musl currently does not have a `locale` command, so we also skip it then.
|
||||
set -l locales (command -sq locale; and locale -a)
|
||||
set -l acceptable_locales bg_BG de_DE es_ES fr_FR ru_RU
|
||||
set -l numeric_locale
|
||||
for locale in {$acceptable_locales}.{UTF-8,UTF8}
|
||||
|
|
Loading…
Reference in a new issue