From d51837b9f0b0066a460e472033e682a385052635 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 30 May 2013 19:52:47 -0400 Subject: Get rid of dependency on Boost filesystem --- xsde/cxx/hybrid/elements.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xsde/cxx/hybrid/elements.cxx') diff --git a/xsde/cxx/hybrid/elements.cxx b/xsde/cxx/hybrid/elements.cxx index fe1e533..0f49311 100644 --- a/xsde/cxx/hybrid/elements.cxx +++ b/xsde/cxx/hybrid/elements.cxx @@ -592,6 +592,7 @@ namespace CXX s.context ().count ("renamed") ? s.context ().get ("renamed") : u.path ()); + path.normalize (); // Try to use the portable representation of the path. If that // fails, fall back to the native representation. @@ -599,11 +600,11 @@ namespace CXX NarrowString path_str; try { - path_str = path.string (); + path_str = path.posix_string (); } catch (SemanticGraph::InvalidPath const&) { - path_str = path.native_file_string (); + path_str = path.string (); } String inc_path; -- cgit v1.1