DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20929>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20929 fix for numberformat06 testcase - to be tested with ICU Summary: fix for numberformat06 testcase - to be tested with ICU Product: XalanC Version: 1.5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: XalanC AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] failure numberformat06: xml: <?xml version="1.0"?> <doc> </doc> xsl: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" encoding="ISO-8859-1"/> <xsl:template match="doc"> <out> <xsl:value-of select="format-number(0.4857,'###.###‰')"/> </out> </xsl:template> </xsl:stylesheet> Results: real: 485.7 (and whitespace) expected: 487.9‰ Patch: ======================================================= Index: c/src/PlatformSupport/XalanDecimalFormatSymbols.cpp diff -c c/src/PlatformSupport/XalanDecimalFormatSymbols.cpp:1.1 c/src/PlatformSupport/XalanDecimalFormatSymbols.cpp:1.3 *** c/src/PlatformSupport/XalanDecimalFormatSymbols.cpp:1.1 Thu May 29 10:44:38 2003 --- c/src/PlatformSupport/XalanDecimalFormatSymbols.cpp Thu Jun 19 18:18:21 2003 *************** *** 95,102 **** 0 }; - XalanDecimalFormatSymbols::XalanDecimalFormatSymbols() : m_currencySymbol(theCurrencySymbol), m_decimalSeparator(XalanUnicode::charFullStop), --- 95,102 ---- 0 }; + static XalanDOMChar thePerMille = 0x2030; XalanDecimalFormatSymbols::XalanDecimalFormatSymbols() : m_currencySymbol(theCurrencySymbol), m_decimalSeparator(XalanUnicode::charFullStop), *************** *** 109,115 **** m_NaN(theNaNDefault), m_patternSeparator(XalanUnicode::charSemicolon), m_percent(XalanUnicode::charPercentSign), ! m_perMill(0), m_zeroDigit(XalanUnicode::charDigit_0) { } --- 109,115 ---- m_NaN(theNaNDefault), m_patternSeparator(XalanUnicode::charSemicolon), m_percent(XalanUnicode::charPercentSign), ! m_perMill(thePerMille), m_zeroDigit(XalanUnicode::charDigit_0) { }
