Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2002-11-14 02:13:49


Alberto Barbati wrote

>BTW, with the current implementation even doing so is completely
>useless, as there are lines like this:

     os.imbue(std::locale::classic());

>that reset the locale of the streams to the "dumb" default. Such lines
>are IMO both unnecessary and conceptually wrong, and should be removed.

Now I remember why I included this.

Suppose that an archive is created where the default local is a spanish speaking
country where the number 123 thousand is written

123.000

The archive is sent to another country where the default locale is an english
speaking country where the string

123.000

means 123

That's why I set the local to classic.

Robert Ramey


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