From 65b9b0c429b6ecd1d255fd8dde5decc7fec0120f Mon Sep 17 00:00:00 2001 From: Alex Astashyn Date: Mon, 12 Dec 2016 19:50:21 -0500 Subject: [PATCH] Disabling snprintf pre-check, since can't get locale-specific behavior to manifest in AppVeyor --- test/src/unit-regression.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/src/unit-regression.cpp b/test/src/unit-regression.cpp index c4b87399a..2763114a8 100644 --- a/test/src/unit-regression.cpp +++ b/test/src/unit-regression.cpp @@ -405,12 +405,15 @@ TEST_CASE("regression tests") { setlocale(LC_NUMERIC, "de_DE.UTF-8"); - // verify that snprintf uses special decimal and grouping characters + // Verify that snprintf uses special decimal and grouping characters. + // Disabled, because can't trigger locale-specific behavior in AppVeyor +#if 0 { std::array buf; std::snprintf(buf.data(), buf.size(), "%.2f", 12345.67); CHECK(strcmp(buf.data(), "12345,67") == 0); } +#endif // verify that dumped correctly with '.' and no grouping const json j1 = 12345.67;