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

Fix FileIO::Impl::switchMode fopen on windows #3007

Closed
wants to merge 1 commit into from
Closed

Fix FileIO::Impl::switchMode fopen on windows #3007

wants to merge 1 commit into from

Conversation

amir-titelbaum-imagenai
Copy link

@amir-titelbaum-imagenai amir-titelbaum-imagenai commented Jul 4, 2024

Use same method to open file in FileIo::Impl::switchMode as is used in FileIo::open This allows wide-string std::fs::path obejcts to be read and written to on windows, without affecting other platforms

Use same method to open file in `FileIo::Impl::switchMode` as is used in `FileIo::open`
This allows wide-string std::fs::path obejcts to be read and written to on windows, without affecting other platforms
@kmilos
Copy link
Collaborator

kmilos commented Jul 4, 2024

This is not the way to fix this IMHO. (I.e. one of the "real" fixes would be restoring the wide char API everywhere, not just here...)

Instead, Windows clients of exiv2 0.28.x should now run in UTF-8 code page, where wide char API is irrelevant.

See also #2951, #2800, and #2637.

@kmilos kmilos added the windows Windows Specific issues label Jul 4, 2024
@amir-titelbaum-imagenai
Copy link
Author

Yes, i can see how much discussion there is around this issue.

Thanks for the pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Windows Specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants