remove direct of realpath(2), replace with canonical_path() which is a no-op on windows

This commit is contained in:
Paul Davis 2013-07-11 14:57:16 -04:00
parent 2ddab2d2f6
commit 09e471545b
5 changed files with 31 additions and 39 deletions

View file

@ -31,6 +31,7 @@
#include "pbd/file_utils.h"
#include "pbd/textreceiver.h"
#include "pbd/failed_constructor.h"
#include "pbd/pathexpand.h"
#include "pbd/pthread_utils.h"
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
#include "pbd/boost_debug.h"
@ -277,7 +278,7 @@ fixup_bundle_environment (int /*argc*/, char* argv[])
lpath.push_back (dir_path);
lpath.push_back ("share");
lpath.push_back ("locale");
localedir = realpath (Glib::build_filename (lpath).c_str(), NULL);
localedir = canonical_path (Glib::build_filename (lpath)).c_str();
}
#endif