7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 21:41:40 +00:00

QA test: ensure qa_common uses the "C" locale to convert doubles to strings.

This commit is contained in:
jean-pierre charras 2025-01-17 15:44:04 +01:00
parent 82414f5e80
commit 7243281756

View File

@ -30,10 +30,14 @@
#include <wx/image.h>
#include <wx/init.h>
#include <locale_io.h>
bool init_unit_test()
{
SetPgm( new MOCK_PGM_BASE() );
// Ensure the "C" locale is used in tests
LOCALE_IO dummy;
boost::unit_test::framework::master_test_suite().p_name.value = "Common library module tests";
bool ok = wxInitialize();