Disable localized number test on OpenBSD

This feature simply does not work there.
This commit is contained in:
Fabian Homborg 2019-11-16 12:11:09 +01:00
parent c14a7cbc8f
commit aae111584d

View file

@ -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