mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
Disable localized number test on OpenBSD
This feature simply does not work there.
This commit is contained in:
parent
c14a7cbc8f
commit
aae111584d
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ for locale in {$acceptable_locales}.{UTF-8,UTF8}
|
|||
end
|
||||
end
|
||||
|
||||
if set -q numeric_locale[1]
|
||||
# OpenBSD's wcstod does not honor LC_NUMERIC, meaning this feature is broken there.
|
||||
if set -q numeric_locale[1]; and test (uname) != "OpenBSD"
|
||||
set -x LC_NUMERIC $numeric_locale
|
||||
printf '%e\n' "3,45" # should succeed, output should be 3,450000e+00
|
||||
printf '%e\n' "4.56" # should succeed, output should be 4,560000e+00
|
||||
|
|
Loading…
Reference in a new issue