Boost logo

Boost :

From: George M. Garner Jr. (gmgarner_at_[hidden])
Date: 2004-09-09 22:52:18


Johnathan,

How do I do locale specific Unicode-to-Multibyte conversion. As I
understand the current design I need to do something like this:

filtering_wostream out;
out.push(unicode_to_multibyte_output_filter<__wchar_t>(locale));
out.push(cout);
out << L"This gets converted to multibyte characters according to the
current locale." << endl;

But the second to last line will generate an error with the present design
because I am attaching a narrow character stream to a wide character
filtering ostream. Do I need to use the boost::io::copy() paradigm? :(-

Regards,

George.


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