l10ntools/source/gsicheck.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 05a0aaa25efc53c4cfa8a955dbf96bbb63b8bc98
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Jul 13 15:35:42 2012 +0200

    fdo#51954: More tools->rtl string conversion regressions
    
    Change-Id: If9c5b0a0876540e9546617faaa5dcb4ae1e5a2cb

diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx
index 98e4b31..b2981a3 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());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to