setLocale in C (not std C++)

This commit is contained in:
brunoherbelin
2021-03-27 23:36:51 +01:00
parent 8a75664264
commit 1c9a5ece83
3 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ static string settingsFilename = "";
void Settings::Save()
{
// impose C locale for all app
std::setlocale(LC_ALL, "C");
setlocale(LC_ALL, "C");
XMLDocument xmlDoc;
XMLDeclaration *pDec = xmlDoc.NewDeclaration();
@@ -221,7 +221,7 @@ void Settings::Save()
void Settings::Load()
{
// impose C locale for all app
std::setlocale(LC_ALL, "C");
setlocale(LC_ALL, "C");
XMLDocument xmlDoc;
if (settingsFilename.empty())