From aae111584ddc1037531a84dbda44750e8bf1e0ff Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 16 Nov 2019 12:11:09 +0100 Subject: [PATCH] Disable localized number test on OpenBSD This feature simply does not work there. --- tests/checks/printf.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/checks/printf.fish b/tests/checks/printf.fish index 16677f5ce..c2696c7b1 100644 --- a/tests/checks/printf.fish +++ b/tests/checks/printf.fish @@ -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