mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
setLocale in C (not std C++)
This commit is contained in:
@@ -121,7 +121,7 @@ SessionLoader::SessionLoader(Session *session, int recursion): Visitor(),
|
|||||||
session_(session), xmlCurrent_(nullptr), recursion_(recursion)
|
session_(session), xmlCurrent_(nullptr), recursion_(recursion)
|
||||||
{
|
{
|
||||||
// impose C locale
|
// impose C locale
|
||||||
std::setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ using namespace tinyxml2;
|
|||||||
bool SessionVisitor::saveSession(const std::string& filename, Session *session)
|
bool SessionVisitor::saveSession(const std::string& filename, Session *session)
|
||||||
{
|
{
|
||||||
// impose C locale
|
// impose C locale
|
||||||
std::setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
// creation of XML doc
|
// creation of XML doc
|
||||||
XMLDocument xmlDoc;
|
XMLDocument xmlDoc;
|
||||||
@@ -82,7 +82,7 @@ SessionVisitor::SessionVisitor(tinyxml2::XMLDocument *doc,
|
|||||||
bool recursive) : Visitor(), recursive_(recursive), xmlCurrent_(root)
|
bool recursive) : Visitor(), recursive_(recursive), xmlCurrent_(root)
|
||||||
{
|
{
|
||||||
// impose C locale
|
// impose C locale
|
||||||
std::setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
if (doc == nullptr)
|
if (doc == nullptr)
|
||||||
xmlDoc_ = new XMLDocument;
|
xmlDoc_ = new XMLDocument;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ static string settingsFilename = "";
|
|||||||
void Settings::Save()
|
void Settings::Save()
|
||||||
{
|
{
|
||||||
// impose C locale for all app
|
// impose C locale for all app
|
||||||
std::setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
XMLDocument xmlDoc;
|
XMLDocument xmlDoc;
|
||||||
XMLDeclaration *pDec = xmlDoc.NewDeclaration();
|
XMLDeclaration *pDec = xmlDoc.NewDeclaration();
|
||||||
@@ -221,7 +221,7 @@ void Settings::Save()
|
|||||||
void Settings::Load()
|
void Settings::Load()
|
||||||
{
|
{
|
||||||
// impose C locale for all app
|
// impose C locale for all app
|
||||||
std::setlocale(LC_ALL, "C");
|
setlocale(LC_ALL, "C");
|
||||||
|
|
||||||
XMLDocument xmlDoc;
|
XMLDocument xmlDoc;
|
||||||
if (settingsFilename.empty())
|
if (settingsFilename.empty())
|
||||||
|
|||||||
Reference in New Issue
Block a user