10205.cpp 314 B

1234567891011121314151617
  1. // Linux test; before running: export LANG=foo
  2. #include <locale>
  3. #include <iostream>
  4. #include <string>
  5. #include <boost/filesystem/path.hpp>
  6. int main()
  7. {
  8. std::string pathname = "/some/filesystem/path/%%%%";
  9. boost::filesystem::path path(pathname);
  10. std::wcout << path.wstring() << std::endl;
  11. return 0;
  12. }