#include <fstream>
#include <iostream>
+#include <locale>
#ifdef HAVE_SYS_ERRNO_H
#include <sys/errno.h>
void
App::save_settings()
{
+ char * old_locale;
try
{
+ old_locale=strdup(setlocale(LC_NUMERIC, NULL));
+ setlocale(LC_NUMERIC, "C");
{
std::string filename=get_config_file("accelrc");
Gtk::AccelMap::save(filename);
std::string filename=get_config_file("settings");
synfigapp::Main::settings().save_to_file(filename);
+ setlocale(LC_NUMERIC,old_locale);
}
catch(...)
{
void
App::load_settings()
{
+ char * old_locale;
try
{
+ old_locale=strdup(setlocale(LC_NUMERIC, NULL));
+ setlocale(LC_NUMERIC, "C");
{
std::string filename=get_config_file("accelrc");
Gtk::AccelMap::load(filename);
synfigapp::Main::settings().set_value("window.toolbox.pos","4 4");
}
}
-
+ setlocale(LC_NUMERIC,old_locale);
}
catch(...)
{