Fixed issue by providing a compatibility bridge between tl::Stream (abstract paths) and tl::URI (#734)

This commit is contained in:
Matthias Köfferlein
2021-02-25 21:28:48 +01:00
committed by GitHub
parent 483f67307c
commit 8b2ecf41df
10 changed files with 70 additions and 17 deletions
@@ -211,7 +211,7 @@ static bool find_and_normalize_file (const tl::URI &uri, std::string &path)
// TODO: this is not quite efficient, but the only thing we can do for now
tl::URI uri_with_ext = uri;
uri_with_ext.set_path (uri_with_ext.path () + extensions[e]);
std::string us = uri_with_ext.to_string ();
std::string us = uri_with_ext.to_abstract_path ();
if (tl::verbosity () >= 30) {
tl::log << tl::to_string (tr ("Trying layout URI: ")) << us;