summaryrefslogtreecommitdiff
path: root/i18npool/source/localedata
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-19 10:20:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-19 11:04:15 +0200
commitf2a0e4032734d6be635f14ade3dea499c29ec6c2 (patch)
tree1f6082b38adda719309f030784af90f01c68a51e /i18npool/source/localedata
parentbd204222480e97717287cffcbfa9dc98f4852f27 (diff)
Don't truncate a UTF-32 code point to a UTF-16 code unit
Change-Id: Ie332b3d088547f6bcc676471182420766ecfedca
Diffstat (limited to 'i18npool/source/localedata')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 29adfabcea6d..bb8ea7119cf3 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -1216,7 +1216,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
{
incErrorStr( "Error: failed to extract full date acceptance pattern: %s\n", aPattern);
fprintf( stderr, " with DateSeparator '%s' from FormatCode '%s' (formatindex=\"%d\")\n",
- OSTR( OUString( cDateSep)), OSTR( sTheDateEditFormat),
+ OSTR( OUString(&cDateSep, 1)), OSTR( sTheDateEditFormat),
(int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY);
}
else
@@ -1224,7 +1224,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
fprintf( stderr, "Generated date acceptance pattern: '%s' from '%s' (formatindex=\"%d\" and defined DateSeparator '%s')\n",
OSTR( aPattern), OSTR( sTheDateEditFormat),
(int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY,
- OSTR( OUString( cDateSep)));
+ OSTR( OUString(&cDateSep, 1)));
// Insert at front so full date pattern is first in checks.
theDateAcceptancePatterns.insert( theDateAcceptancePatterns.begin(), aPattern);
}
@@ -1235,7 +1235,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
{
incErrorStr( "Error: failed to extract 2nd date acceptance pattern: %s\n", aPattern2);
fprintf( stderr, " with DateSeparator '%s' from FormatCode '%s' (formatindex=\"%d\")\n",
- OSTR( OUString( cDateSep2)), OSTR( sTheDateEditFormat),
+ OSTR( OUString(&cDateSep2, 1)), OSTR( sTheDateEditFormat),
(int)cssi::NumberFormatIndex::DATE_SYS_DDMMYYYY);
}
else