fix(libc): build the working directory path without deprecated u8path

This commit is contained in:
Crimson committed 2026-10-17 01:18:48 +03:00
1 parent af7db81e6e
commit e55144bfe5
1 file changed
+1 -1
+1 -1
View File
@@ -467,7 +467,7 @@ extern "C" int SetWorkingDirectory_nid_no_patch(const char* resolved) {
auto& state = Directories();
std::lock_guard lock(state.mutex);
try {
return SetWorkingDirectory(state, std::filesystem::u8path(resolved));
return SetWorkingDirectory(state, std::filesystem::path(reinterpret_cast<const char8_t*>(resolved)));
} catch (const std::bad_alloc&) {
return 12;
} catch (const std::filesystem::filesystem_error& error) {