Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the API to support filesystem::path if this feature is available #85

Merged
merged 1 commit into from
Aug 15, 2021
Merged

Conversation

dimitri-tdg
Copy link
Contributor

@dimitri-tdg dimitri-tdg commented Jul 30, 2021

When using unicode path under windows, there are some issues and files couldn't not be retrieved/accessed correctly. The way to fix this is to use filesystem::path to delegate path encoding to std library.

@dimitri-tdg dimitri-tdg changed the title Change the API to support std::filesystem::path if this feature is av… Change the API to support std::filesystem::path if this feature is available Jul 30, 2021
@dimitri-tdg dimitri-tdg changed the title Change the API to support std::filesystem::path if this feature is available Change the API to support filesystem::path if this feature is available Jul 30, 2021
@jessey-git
Copy link
Owner

@dimitri-tdg Wow, thanks for doing this work! I think this looks fine as-is with 1 minor comment that I left relating to undefining the defines. I'll need to update the viewer application to account for the breaking change and I'll want to change my .clang-format to use indention for the #defines but I'll check those in afterwards on my own I think.

@dimitri-tdg
Copy link
Contributor Author

Oh you're right @jessey-git! I didn't modify the viewer application to support this modification. I focused on unit tests and validation tests only. I can check to integrate this into the same PR but I'm not super comfortable with Windows graphical API 😅

Anyway, if you want to pack all modifications (code + utests + viewer application), feel free to modify/reuse my proposal!

@jessey-git jessey-git merged commit 2f9ae56 into jessey-git:master Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants