Hi all, I'm new to this particular forum.
I am using Borland C++ 5.82, and the following fails:
But the following works just fine:
I admit I am still fairly new to messing with the STL locale class, but I don't understand what I did wrong above. It works fine with the default GCC library. (And I would prefer my code to be as portable as possible.)
Thank you for your time.
I am using Borland C++ 5.82, and the following fails:
Code:
...
#include "utf8_locale.hpp"
const std::locale utf8_locale( // A global object
std::locale::classic(),
new duthomhas::unicode::utf8_facet
);
int main()
{
wofstream outf;
outf.imbue( utf8_locale );
...
Code:
...
#include "utf8_locale.hpp"
int main()
{
const std::locale utf8_locale( // A local object
std::locale::classic(),
new duthomhas::unicode::utf8_facet
);
wofstream outf;
outf.imbue( utf8_locale );
...
Thank you for your time.