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

path methods taking codecvt should perform char<->char code conversion #257

Open
Lastique opened this issue Aug 31, 2022 · 0 comments
Open

Comments

@Lastique
Copy link
Member

Currently, constructor/assignment/appending methods that accept codecvt_type arguments only perform character code conversion when the source character type does not match path::value_type. C++ standard requires (e.g. here and here) that when both path::value_type and source value type are char the conversion is performed twice: first, from source encoding to wchar_t using the supplied codecvt_type facet, then from wchar_t to native path character encoding using path::codecvt().

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

No branches or pull requests

1 participant