Boost logo

Boost :

Subject: Re: [boost] [filesystem] Version 3 of Boost.Filesystem added to trunk
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-04 12:55:26


AMDG

Beman Dawes wrote:
> 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.
>

Is this thread-safe?

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

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk