From 93b34981fa6f82e49ffe90ba8b6f0fefbfba281e Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Tue, 24 Jul 2018 23:26:45 +0200 Subject: test1148: disable if decimal separator is not point Modifying the locale with environment variables doesn't work for native Windows applications. Just disable the test in this case if the decimal separator is something different than a point. Use a precheck with a small C program to achieve that. Closes https://github.com/curl/curl/pull/2786 --- tests/data/test1148 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/data') diff --git a/tests/data/test1148 b/tests/data/test1148 index bf65aa411..47fb5a5d4 100644 --- a/tests/data/test1148 +++ b/tests/data/test1148 @@ -37,6 +37,9 @@ progress-bar http://%HOSTIP:%HTTPPORT/1148 -# --stderr log/stderrlog1148 + +perl -e '$ENV{"LC_NUMERIC"} = "en_US.UTF-8"; system("./libtest/chkdecimalpoint") and die("Test requires point as decimal separator");' + LC_ALL= LC_NUMERIC=en_US.UTF-8 -- cgit v1.2.3