This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: Re: iostream changes locale to format a number
Sorry, I sent the wrong testcase (redundant #ifdef). This is what I have
tested:
#include <clocale>
#include <sstream>
#include <cassert>
void
test0x()
{
using namespace std;
bool test = true;
ostringstream oss;
string loc1 = setlocale(LC_ALL, "de_DE");
oss << 1;
string loc2 = setlocale(LC_ALL, NULL);
assert( loc1 == loc2 );
}
int main()
{
test0x();
}
Ciao,
Paolo.