[filesystem] imbue for path_traits

Hi, Currently filesystem::path_traits doesn't have imbue() method while wpath_traits has. Thus, there is explicit assumption that external and internal encodings for path are the same. But this is not true sometimes. For example, currently it doesn't seem to be possible to use filesystem::path conveniently on Linux in cases when internal encoding of the application is UTF-8 while system encoding might differ from UTF-8 (GB2312, for example).

Alexei Alexandrov wrote:
Hi,
Currently filesystem::path_traits doesn't have imbue() method while wpath_traits has. Thus, there is explicit assumption that external and internal encodings for path are the same.
But this is not true sometimes. For example, currently it doesn't seem to be possible to use filesystem::path conveniently on Linux in cases when internal encoding of the application is UTF-8 while system encoding might differ from UTF-8 (GB2312, for example).
I've created Ticket #1682 for this, and will work on it before the 1.36.0 release. Thanks, --Beman
participants (2)
-
Alexei Alexandrov
-
Beman Dawes