[Libreoffice-commits] core.git: sal/textenc
Stephan Bergmann
sbergman at redhat.com
Thu Sep 28 12:42:19 UTC 2017
sal/textenc/textcvt.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 870617882366232aa4ff9aa2faaae1cad2bbc3f8
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 28 14:32:49 2017 +0200
Warn about missing text converter
(probably because the encoding is RTL_TEXTENCODING_DONTKNOW; that may
still happen in various places, so can't use anything stronger than
SAL_WARN here)
Change-Id: I75993c9ad629104055c171389ed7708649747d9b
diff --git a/sal/textenc/textcvt.cxx b/sal/textenc/textcvt.cxx
index 03914833544b..1c5ec838b57c 100644
--- a/sal/textenc/textcvt.cxx
+++ b/sal/textenc/textcvt.cxx
@@ -22,6 +22,7 @@
#include <cassert>
#include "rtl/textcvt.h"
+#include "sal/log.hxx"
#include "gettextencodingdata.hxx"
#include "tenchelp.hxx"
@@ -183,6 +184,7 @@ sal_Size SAL_CALL rtl_convertTextToUnicode( rtl_TextToUnicodeConverter hConverte
converter, because not all converters are implemented yet */
if ( !pConverter )
{
+ SAL_WARN("sal.textenc", "Missing rtl_TextToUnicodeConverter");
return ImplDummyToUnicode( pSrcBuf, nSrcBytes,
pDestBuf, nDestChars,
nFlags, pInfo, pSrcCvtBytes );
@@ -280,6 +282,7 @@ sal_Size SAL_CALL rtl_convertUnicodeToText( rtl_UnicodeToTextConverter hConverte
converter, because not all converters are implemented yet */
if ( !pConverter )
{
+ SAL_WARN("sal.textenc", "Missing rtl_UnicodeToTextConverter");
return ImplUnicodeToDummy( pSrcBuf, nSrcChars,
pDestBuf, nDestBytes,
nFlags, pInfo, pSrcCvtChars );
More information about the Libreoffice-commits
mailing list