dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/I18N/tools loc2cul.c,1.3,1.4


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/I18N/tools loc2cul.c,1.3,1.4
Date: Mon, 02 Jun 2003 00:47:19 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/I18N/tools
In directory subversions:/tmp/cvs-serv32557/I18N/tools

Modified Files:
        loc2cul.c 
Log Message:


Fetch currency symbol and digit information from the region name table because
the ICU locale information is unreliable.


Index: loc2cul.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/I18N/tools/loc2cul.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** loc2cul.c   2 Jun 2003 02:25:41 -0000       1.3
--- loc2cul.c   2 Jun 2003 04:47:17 -0000       1.4
***************
*** 1121,1144 ****
  static void printNumberFormat(void)
  {
-       Node *currency;
        Node *numElems;
  
        /* Load the format information */
-       if(identifier)
-       {
-               currency = getNode("Currencies");
-               if(currency)
-               {
-                       currency = currency->children;
-               }
-       }
-       else
-       {
-               currency = 0;
-       }
        numElems = getNode("NumberElements");
  
        /* Do we need to override the number format information? */
!       if(!currency && !numElems)
        {
                return;
--- 1121,1131 ----
  static void printNumberFormat(void)
  {
        Node *numElems;
  
        /* Load the format information */
        numElems = getNode("NumberElements");
  
        /* Do we need to override the number format information? */
!       if(identifier != 0 && !numElems)
        {
                return;
***************
*** 1176,1185 ****
                           getNodeByIndex(numElems, NFI_MONETARY_SEPARATOR));
        }
!       if(currency)
        {
!               printf("\t\t\tnfi.CurrencySymbol = \"%s\";\n",
!                          getNodeByIndex(currency, 0));
!               printf("\t\t\tnfi.CurrencyDecimalDigits = %d;\n",
!                          getCurrencyDigits(currency->name));
        }
        if(hasNodeByIndex(numElems, NFI_GROUPING_SEPARATOR))
--- 1163,1170 ----
                           getNodeByIndex(numElems, NFI_MONETARY_SEPARATOR));
        }
!       if(!identifier)
        {
!               /* Fetch the currency information from the region name table */
!               printf("\t\t\tRegionNameTable.AddCurrencyInfo(nfi, this);\n");
        }
        if(hasNodeByIndex(numElems, NFI_GROUPING_SEPARATOR))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]