diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-09-28 14:32:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-28 14:41:23 +0200 |
commit | 870617882366232aa4ff9aa2faaae1cad2bbc3f8 (patch) | |
tree | 89d5423d52a7aeb9f564a2f3fd4177350cc78ec1 /sal/textenc | |
parent | 4b88f3545c9525146327470ea767041d6de4c7ca (diff) |
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
Diffstat (limited to 'sal/textenc')
-rw-r--r-- | sal/textenc/textcvt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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 ); |