Boost logo

Boost :

Subject: Re: [boost] [filesystem] Version 3 of Boost.Filesystem added to trunk
From: Beman Dawes (bdawes_at_[hidden])
Date: 2010-06-04 07:06:01

On Fri, Jun 4, 2010 at 3:57 AM, Sylvain Pointeau
<sylvain.pointeau_at_[hidden]> wrote:
> Would it be possible to have some constructors (or static functions) to
> create a path from an UTF-8 or UTF-16 string?

UTF-16 via wchar_t is already supported for Windows (and possibly
other environments) where wchar_t a UTF-16 type.

Also, UTF-16 will be supported for all c++0x compilers via char16_t strings.

UTF-8 strings are already supported for environments like Mac OS X
where UTF-8 is the default narrow string encoding.

UTF-8 strings are already supported for all environments, via path::imbue().

Temporary use of any locale is already supported via class scoped_path_locale.

Now it would also be possible to provide a constructor, etc, that
takes a locale, but is that worth cluttering the interface? I went
back and forth, on that, but the use cases I could think of were not
very compelling.


Boost list run by bdawes at, gregod at, cpdaniel at, john at