MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / python_utf8_path

Function python_utf8_path

src/python/lfs/module.cpp:136–138  ·  view source on GitHub ↗

Python path strings are UTF-8. Avoid implicit std::filesystem::path(string) on Windows, which routes through the active ANSI code page.

Source from the content-addressed store, hash-verified

134 // Python path strings are UTF-8. Avoid implicit std::filesystem::path(string)
135 // on Windows, which routes through the active ANSI code page.
136 std::filesystem::path python_utf8_path(const std::string& value) {
137 return lfs::core::utf8_to_path(value);
138 }
139
140 std::expected<void, std::string> post_clear_scene_to_viewer(lfs::vis::Visualizer& viewer) {
141 if (viewer.isOnViewerThread()) {

Callers 1

NB_MODULEFunction · 0.85

Calls 1

utf8_to_pathFunction · 0.85

Tested by

no test coverage detected