// Linux test; before running: export LANG=foo #include #include #include #include int main() { std::string pathname = "/some/filesystem/path/%%%%"; boost::filesystem::path path(pathname); std::wcout << path.wstring() << std::endl; return 0; }