[ic] locale: decimals truncated

Andrei Gologan interchange-users@icdevgroup.org
Fri Apr 11 09:45:01 2003



> Quoting Alessandro Scudieri (Scudieri@openinformatica.it):
> > >
> > > Then put the price data back to N.NN and try these as your last lines:
> > >
> > > Locale          it_IT
> > > Locale          en_US
> > > Locale          it_IT default 1
> > Ok, with this, and "." in decimals, all currency values are displayed
> > properly and the default locale is italian. But... why ic doesn't read
the
> > "default" row in locale.txt ?
>
> It does, but you did this *last*. The problem is that the special:
>
>     Locale  it_IT
>
> sets the actual *system* locale. That changes Perl's settings, and
> Interchange can't do a darned thing about it without really doing
> risky things in the way of number formats.
>

Hallo

I have the same problem occuring after moving form IC 4.8.3 to IC 4.8.7 ,
when I put:

Locale de_DE

it shows the price as NN.00 no decimal values at all. whatever decimal is
there it gets converted to ,00
Price picture like this N,NN in the mysql table turn the price into 80.00 .
I have all prices as N.NN . with Locale en_US it shows me prices like NN.NN
but this is not the european format.

I have:

code    en_US   de_DE   fr_FR
frac_digits     2       2       2
currency_symbol EUR     EUR     EUR
decimal_point   ,       ,       ,
p_cs_precedes
mon_thousands_sep       .       .       .
mon_decimal_point       ,       ,       ,
mon_thousand_sep
p_sep_by_space          2       2
default 0       1       0
price_picture

How can I switch to the de_DE Locale again ?
 I tried anything on the mailing list but it does not work.

Thank you for your help.
Andrei