Fixed tests and windows build

This commit is contained in:
Lukas Matena 2021-05-10 12:18:30 +02:00
parent c5c6f51ae0
commit 6b6b086948
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,7 @@ CNumericLocalesSetter::CNumericLocalesSetter()
CNumericLocalesSetter::~CNumericLocalesSetter()
{
#ifdef _WIN32
std::setlocale(LC_NUMERIC, m_orig_numeric_locale)
std::setlocale(LC_NUMERIC, m_orig_numeric_locale.data());
#else
uselocale(m_original_locale);
freelocale(m_new_locale);