Kaydet (Commit) 87061788 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 4b88f354
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment