*/
#include <glib.h>
-#include <glib/gstdio.h> /* for g_stat() */
+#include "pbd/gstdio_compat.h"
#include <glibmm/miscutils.h> /* for build_filename() */
+#include "pbd/error.h"
#include "pbd/file_utils.h"
+#include "pbd/locale_guard.h"
#include "pbd/pathexpand.h"
#include "ardour/types.h"
#include "ardour/filesystem_paths.h"
#include "ardour/session_configuration.h"
-#include "i18n.h"
+#include "ardour/utils.h"
+#include "pbd/i18n.h"
using namespace ARDOUR;
using namespace PBD;
SessionConfiguration::get_state ()
{
XMLNode* root;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg;
root = new XMLNode ("Ardour");
root->add_child_nocopy (get_variables ());
SessionConfiguration::get_variables ()
{
XMLNode* node;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg;
node = new XMLNode ("Config");
XMLNode* node;
if (((node = find_named_node (root, X_("Config"))) != 0)) {
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg;
set_variables(*node);
info << _("Loaded custom session defaults.") << endmsg;
} else {