This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2005 15:59:19 -0000
- Subject: [Bug libstdc++/19642] streaming doubles is very slow compared to sprintf
- References: <20050126142651.19642.joerg.richter@pdv-fs.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-01-27 15:59 -------
Excellent. Can you please check whether on AIX this is ok ("de_DE" is just
an example, any actually installed named locale should do):
#include <locale.h>
#include <string.h>
#include <assert.h>
int main()
{
char* save = setlocale(LC_ALL, "de_DE");
assert( !save || !strcmp(setlocale(LC_NUMERIC, NULL), "de_DE"));
return 0;
}
???
In short, we should make sure that any change to LC_ALL is reflected to
LC_NUMERIC. I have checked that this is the case with glibc and also
FreeBSD but we should check all the supported OSes. Thanks again!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19642