
"Vladimir Prus" <ghost@cs.msu.su> wrote in message news:200506241355.50000.ghost@cs.msu.su...
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. --Beman