Boost logo

Boost :

Subject: Re: [boost] [locale] Strange(?) result in example code
From: Artyom (artyomtnk_at_[hidden])
Date: 2011-04-19 07:42:42


> > It should be rather
> >
> > > void
> > > imbue_globally(_locale)
> > > {
> > > std::locale::global(_locale);
> > >
> > > std::cout.imbue(_locale);
> > > std::cin.imbue(_locale);
> > > std::cerr.imbue(_locale);
> > > std::clog.imbue(_locale);
> > >
> > > std::wcout.imbue(_locale);
> > > std::wcin.imbue(_locale);
> > > std::wcerr.imbue(_locale);
> > > std::wclog.imbue(_locale);
> > >
> > > boost::filesystem::path::imbue(_locale);
> > >
> > > }
> >
> > Of course when you use boost.filesyste,
>
> I disagree. For those that don't
> use both narrow and wide streams or
> Boost.Filesystem, such a function would increase binary size unnecessarily.
>

Of course, nobody need to link with boost.filesystem

All I wanted to mention that many libraries have
their own "global locale"

Thats it.

Artyom


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