boostorg / boostorg/filesystem

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

Open
#257 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
180
Forks
168
PR merge metrics
No merged PRs in 30d

Description

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](http://eel.is/c++draft/filesystems#fs.path.construct-6) and [here](http://eel.is/c++draft/filesystems#fs.path.construct-7)) 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()`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.