bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Subject: strtod, strtold tests: Avoid a test failure on native Windows
Date: Thu, 22 Feb 2024 01:13:59 +0100	[thread overview]
Message-ID: <79960000.VQpxGFKSoK@nimes> (raw)

In a testdir of strtod and strtold, I see test failures on native Windows
(mingw, MSVC 14). The reason appears to be that the native setlocale()
function there ignores the environment variables that the shell script
sets; it looks only at the system settings.

This patch fixes it.

2024-02-21  Bruno Haible  <bruno@clisp.org>

	strtod, strtold tests: Avoid a test failure on native Windows.
	* modules/strtod-tests (Depends-on): Add setlocale.
	* modules/strtold-tests (Depends-on): Likewise.

diff --git a/modules/strtod-tests b/modules/strtod-tests
index cbc8030ca4..b6fc4585bf 100644
--- a/modules/strtod-tests
+++ b/modules/strtod-tests
@@ -12,6 +12,7 @@ Depends-on:
diff --git a/modules/strtold-tests b/modules/strtold-tests
index 1c270954ad..66774147d3 100644
--- a/modules/strtold-tests
+++ b/modules/strtold-tests
@@ -12,6 +12,7 @@ Depends-on:

                 reply	other threads:[~2024-02-22  0:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79960000.VQpxGFKSoK@nimes \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).