diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-09-05 09:57:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-09-05 11:11:29 +0200 |
commit | 411e4d15ff278c4fec77126f29916b5600aefbfb (patch) | |
tree | 0271a55f143993b7ce07ba0d19764b9d2ff5568b /sal/textenc/tcvtmb.cxx | |
parent | e8acfdb4428523e10fe63728f36bc0d8ddd9a9d8 (diff) |
Fix conversion of U+0000 in ImplUnicodeToDBCS
...which appears to have been broken when
13824735057ef25075af8fd0ddb8f14e34c7eeb6 "#81346# - Fix for unconverted
characters for DBCS encodings" moved that "if" out of surrounding "if" block.
(And, for consistency, write the "if" check in the same way as the preceding one
is written since 739cb04c36524c5a1bbf768dfe93624a1b2ec8b4 "#97705# Fixed mapping
of Big5 EUDC points.")
Change-Id: I4324197c4eba671ab6313fb89f988da102b8ffa5
Reviewed-on: https://gerrit.libreoffice.org/78627
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/textenc/tcvtmb.cxx')
-rw-r--r-- | sal/textenc/tcvtmb.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/textenc/tcvtmb.cxx b/sal/textenc/tcvtmb.cxx index 4e990cc1e91e..89e89c56c628 100644 --- a/sal/textenc/tcvtmb.cxx +++ b/sal/textenc/tcvtmb.cxx @@ -320,7 +320,7 @@ sal_Size ImplUnicodeToDBCS( const void* pData, SAL_UNUSED_PARAMETER void*, } } - if ( !cConv ) + if (cConv == 0 && c != 0) { if ( nFlags & RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE ) { |