Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-06-26 18:42:10

"Vladimir Prus" <ghost_at_[hidden]> wrote in message
> On Thursday 19 May 2005 00:53, Beman Dawes wrote:
>> > So using locale("") is the best guess, I think.
>> After reading the C++, C, and POSIX standards, I would say you are right.
>> But wide_test got a conversion failure from the codecvt facet on the Mac.
>> Ditto for the global locale. I haven't tested on POSIX yet.
> Looking at the test, it creates various files with various funny names.
> So, if
> locale("") is not unicode, you'll indeed get conversion failures. Or do I
> miss something?

I eventually added the ability to imbue the locale, so if locale("") isn't
satisfactory, the user has an out.

The wide_test program was changed to always imbue a locale which uses the
Boost UTF-8 codecvt facet. That cleared the problems with tests on the Mac.


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