[ic] locale: decimals truncated

Alessandro Scudieri interchange-users@icdevgroup.org
Thu Sep 5 06:20:04 2002


Hi,
I have problems with locale currency presentation: if  I set any locale
different from en_US as the default (eg. it_IT, but I have tried also with
fr_FR and de_DE), decimals of any currency number (price, shipping, etc.)
are truncated (eg. 23,67 -> 23,00). If instead I leave en_US as the default
decimals are ok.
Then, following the links (put on index.html):
<A HREF="[area href="process/locale/it_IT/page/index"]">Italiano</A>
<A HREF="[area href="process/locale/en_US/page/index"]">English</A>
decimal are also ok.

My configuration is:
- Interchange 4.8.6 (upgraded from 4.8.5)
- locale.txt:
code it_IT en_US de_DE fr_FR
January Gennaio  Januar Janvier
February Febbraio  Februar F&eacute;vrier
March Marzo  M&auml;rz Mars
April Aprile  April Avril
May Maggio  Mai Mai
June Giugno  Juni Juin
July Luglio  Juli Juillet
August Agosto  August Aout
September Settembre  September Septembre
October Ottobre  Oktober Octobre
November Novembre  November Novembre
December Dicembre  Dezember D&eacute;cembre
PriceDivide
ProductFiles
currency_symbol Eur Eur Eur Eur
decimal_point . . . .
default 1 0 0 0
frac_digits 2 2 2 2
mon_decimal_point , . . .
mon_thousand_sep
mon_thousands_sep  , , ,
p_cs_precedes 1 1 1 1
p_sep_by_space 1 1 1 1
price_picture
products   de_products produits
Cart Contents Carrello
Description Descrizione
Quantity Quantità

- catalog.cfg (locale stuff):
# Last locale specified is the default.
Locale          it_IT LC_CTYPE C
Locale          en_US LC_CTYPE C

(if I invert this last two lines, again decimals are always truncated to
,00).

Is this a my error, a bug or.. a feature?

Thanks in advance, Scudi
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Ing. Alessandro Scudieri
OPEN INFORMATICA Srl (http://www.openinformatica.it)
Piazza Matteotti, 1/3 - 16123 Genova
Tel. 010 2543011 - Fax 010 2544759
E-Mail: scudieri@openinformatica.it
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~