|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2002-11-15 23:41:48
Gentlemen,
Those interested in locale for text archives:
How does this strike you?
text_iarchive(Stream &_is) :
is(_is)
{
// archives always use classic locale
#ifndef BOOST_NO_STD_LOCALE
plocale = is.imbue(std::locale::classic());
#endif
init();
}
~text_iarchive(){
#ifndef BOOST_NO_STD_LOCALE
is.imbue(plocale);
#endif
}
Another observation:
I note that my test.cpp program includes wchar_t member variables initialized to values in excess of 256.
The system doesn't seem to lose any informaton in storing/loading to a stream with classic locale.
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk