filesystem icon indicating copy to clipboard operation
filesystem copied to clipboard

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

Open Lastique opened this issue 3 years ago • 0 comments

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().

Lastique avatar Aug 31 '22 06:08 Lastique