u8string_fix.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. diff --git a/source/detail/posix/xdnd_protocol.hpp b/source/detail/posix/xdnd_protocol.hpp
  2. index aa1ae43..d856869 100644
  3. --- a/source/detail/posix/xdnd_protocol.hpp
  4. +++ b/source/detail/posix/xdnd_protocol.hpp
  5. @@ -156,7 +156,7 @@ namespace nana{
  6. for(auto& file : data.files)
  7. {
  8. uri_list += "file://";
  9. - uri_list += file.u8string();
  10. + uri_list += file.string();
  11. uri_list += "\r\n";
  12. }
  13. diff --git a/source/gui/filebox.cpp b/source/gui/filebox.cpp
  14. index 63586ab..28071d5 100644
  15. --- a/source/gui/filebox.cpp
  16. +++ b/source/gui/filebox.cpp
  17. @@ -1013,7 +1013,7 @@ namespace nana
  18. for(auto i = selection_.targets.cbegin(); i != selection_.targets.cend();)
  19. {
  20. std::filesystem::path p{*i};
  21. - if(p.filename().u8string() == mfs.name)
  22. + if(p.filename().string() == mfs.name)
  23. {
  24. if(!selection_.is_deselect_delayed)
  25. {
  26. @@ -1042,7 +1042,7 @@ namespace nana
  27. if(!filename_string.empty())
  28. filename_string += ' ';
  29. - filename_string += "\"" + p.filename().u8string() + "\"";
  30. + filename_string += "\"" + p.filename().string() + "\"";
  31. }
  32. }
  33. @@ -1576,7 +1576,7 @@ namespace nana
  34. if(!targets.empty())
  35. - impl_->path = targets.front().parent_path().u8string();
  36. + impl_->path = targets.front().parent_path().string();
  37. else
  38. impl_->path.clear();
  39. #endif