summaryrefslogtreecommitdiff
path: root/hscript/script.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/script.cc')
-rw-r--r--hscript/script.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/script.cc b/hscript/script.cc
index 6e436b7..59a799a 100644
--- a/hscript/script.cc
+++ b/hscript/script.cc
@@ -229,7 +229,7 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts,
if(name == "/dev/stdin") {
curr_name = "<stdin>";
} else {
- curr_name = fs::canonical(fs::path(name));
+ curr_name = fs::canonical(fs::path(name)).native();
}
std::set<std::string> seen = {curr_name};
bool inherit = false;
@@ -270,7 +270,7 @@ Script *Script::load(std::istream &sstream, const ScriptOptions &opts,
fs::path better_path = fs::absolute(curr_name);
better_path.remove_filename();
better_path /= next_name;
- next_name = fs::absolute(better_path);
+ next_name = fs::absolute(better_path).native();
}
if(seen.find(next_name) != seen.end()) {