From 8fc29cd7c8abb80d4def90ac12602887e2a13fde Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sun, 21 Feb 2010 01:02:01 +0100 Subject: locales33: additional check for ]) currency symbol with parentheses negative format code --- i18npool/source/localedata/LocaleNode.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'i18npool/source/localedata/LocaleNode.cxx') diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx index 3f09e394a833..905fe67b894f 100644 --- a/i18npool/source/localedata/LocaleNode.cxx +++ b/i18npool/source/localedata/LocaleNode.cxx @@ -657,7 +657,9 @@ void LCFormatNode::generateCode (const OFileWriter &of) const OUString aPar1( RTL_CONSTASCII_USTRINGPARAM( "0)" )); OUString aPar2( RTL_CONSTASCII_USTRINGPARAM( "-)" )); OUString aPar3( RTL_CONSTASCII_USTRINGPARAM( " )" )); - if (aCode.indexOf( aPar1 ) > 0 || aCode.indexOf( aPar2 ) > 0 || aCode.indexOf( aPar3 ) > 0) + OUString aPar4( RTL_CONSTASCII_USTRINGPARAM( "])" )); + if (aCode.indexOf( aPar1 ) > 0 || aCode.indexOf( aPar2 ) > 0 || + aCode.indexOf( aPar3 ) > 0 || aCode.indexOf( aPar4 ) > 0) fprintf( stderr, "Warning: FormatCode formatindex=\"%d\" for currency uses parentheses for negative amounts, which probably is not correct for locales not based on en_US.\n", formatindex); } break; -- cgit v1.2.3