Skip to content

Commit

Permalink
Fixes #869
Browse files Browse the repository at this point in the history
  • Loading branch information
Emery Berger committed Oct 17, 2024
1 parent 92d423c commit 6cee607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/traceconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TraceConfig {
auto s = PyBytes_AsString(unic);
items.push_back(s);
}
scalene_base_path = PyBytes_AsString(PyUnicode_AsASCIIString(base_path));
scalene_base_path = PyBytes_AsString(PyUnicode_AsEncodedString(base_path, "utf-8", "strict"));
}

bool should_trace(char* filename) {
Expand Down

0 comments on commit 6cee607

Please sign in to comment.