>>>>> "Herbert" == Herbert Voss <[EMAIL PROTECTED]> writes:

Herbert> always the same :-(

OK, I have determined since then that this patch cannot possibly make
a difference :) However, I really do not understand what happens...

Could you compile the appended program with
 gcc -Wall localetest.C -o localetest
and run it? I'd be interested  to know what the result is. On my
system I get:

fantomas: LC_NUMERIC="fr_FR.ISO8859-1" ./localetest
numeric locale is C
Default: 1.100000
Localized: 1,100000
C locale: 1.100000

JMarc

--------localetest.C----------
#include <stdio.h>
#include <locale.h>

int main ()
{
        printf("numeric locale is %s\n", setlocale(LC_NUMERIC, NULL));
        float a = 1.1;
        printf("Default: %f\n", a);
        setlocale(LC_NUMERIC, "");
        printf("Localized: %f\n", a);
        setlocale(LC_NUMERIC, "C");
        printf("C locale: %f\n", a);
        return 0;
}
------------------------------

Reply via email to