summaryrefslogtreecommitdiff
path: root/xsd/cxx/parser/elements.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/cxx/parser/elements.cxx')
-rw-r--r--xsd/cxx/parser/elements.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xsd/cxx/parser/elements.cxx b/xsd/cxx/parser/elements.cxx
index a721ea8..bd610a3 100644
--- a/xsd/cxx/parser/elements.cxx
+++ b/xsd/cxx/parser/elements.cxx
@@ -212,6 +212,7 @@ namespace CXX
s.context ().count ("renamed")
? s.context ().get<SemanticGraph::Path> ("renamed")
: u.path ());
+ path.normalize ();
// Try to use the portable representation of the path. If that
// fails, fall back to the native representation.
@@ -219,11 +220,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;