From 05a0aaa25efc53c4cfa8a955dbf96bbb63b8bc98 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Jul 2012 15:35:42 +0200 Subject: fdo#51954: More tools->rtl string conversion regressions Change-Id: If9c5b0a0876540e9546617faaa5dcb4ae1e5a2cb --- l10ntools/source/gsicheck.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'l10ntools') diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx index 98e4b310f01b..b2981a305513 100644 --- a/l10ntools/source/gsicheck.cxx +++ b/l10ntools/source/gsicheck.cxx @@ -479,7 +479,7 @@ sal_Bool GSIBlock::HasSuspiciousChars( GSILine* pTestee, GSILine* pSource ) rtl::OStringToOUString( pTestee->GetText().copy(0, nPos), RTL_TEXTENCODING_UTF8)); sal_Int32 nErrorPos = aUTF8Tester.getLength(); - rtl::OString aContext( pTestee->GetText().copy( nPos, 20 ) ); + rtl::OString aContext( helper::abbreviate( pTestee->GetText(), nPos, 20 ) ); PrintError(rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM("Found double questionmark in translation only. Looks like an encoding problem at Position ")) .append(nErrorPos).getStr(), "Text format", aContext, pTestee->GetLineNumber(), pTestee->GetUniqId()); -- cgit