+#include <libxml/uri.h>
+
#include <lrdf.h>
#include <pbd/compose.h>
#include <lrdf.h>
#include <pbd/compose.h>
string
AudioLibrary::path2uri (string path)
{
string
AudioLibrary::path2uri (string path)
{
+ xmlURI temp;
+ memset(&temp, 0, sizeof(temp));
+
+ xmlChar *cal = xmlCanonicPath((xmlChar*) path.c_str());
+ temp.path = (char *) cal;
+ xmlChar *ret = xmlSaveUri(&temp);
+ xmlFree(cal);
+
- uri << "file:" << path;
+ uri << "file:" << (const char*) ret;
+
+ xmlFree (ret);
+