You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/07/11 00:46:57 UTC
cvs commit: xml-xalan/c/src/ICUBridge ICUBridge.cpp
dbertoni 00/07/10 15:46:57
Modified: c/src/ICUBridge ICUBridge.cpp
Log:
Treat U_USING_DEFAULT_ERROR as success.
Revision Changes Path
1.3 +6 -2 xml-xalan/c/src/ICUBridge/ICUBridge.cpp
Index: ICUBridge.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/ICUBridge/ICUBridge.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ICUBridge.cpp 2000/07/10 01:04:59 1.2
+++ ICUBridge.cpp 2000/07/10 22:46:56 1.3
@@ -148,11 +148,13 @@
theDFS.setInternationalCurrencySymbol(UnicodeString(&theInternationalCurrencySymbolString[0], theInternationalCurrencySymbolString.size()));
theDFS.setMonetaryDecimalSeparator(theMonetaryDecimalSeparatorChar);
- if (theStatus == U_ZERO_ERROR)
+ if (theStatus == U_ZERO_ERROR ||
+ theStatus == U_USING_DEFAULT_ERROR)
{
DecimalFormat theFormatter(theUnicodePattern, theDFS, theStatus);
- if (theStatus == U_ZERO_ERROR)
+ if (theStatus == U_ZERO_ERROR ||
+ theStatus == U_USING_DEFAULT_ERROR)
{
// Do the format...
theFormatter.format(theNumber, theUnicodeResult);
@@ -164,6 +166,8 @@
theResult.resize(theLength);
theUnicodeResult.extract(0, theLength, &theResult[0]);
+
+ theStatus = U_ZERO_ERROR;
}
}