summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-08-15 20:27:44 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-08-15 14:37:16 -0500
commitcef219d07557bfeff256e78c583a20912d3d209f (patch)
tree1cba85a865b480f24dc9e0ebf2b197f9f3b2f834
parent36ae57de85d6a6b82645018b71d8fd752cf6bc4d (diff)
fdo#82644 write sal_Unicode chars as Unicode
Regression from commit de84529b55f5b295b089043a7119d6b0d8b92408. Change-Id: I8f0b148ec7df4f676341f588c04780a705c80a5c (cherry picked from commit 92240691d1c11a003474a322596fcd1ac3513eb5) Reviewed-on: https://gerrit.libreoffice.org/10937 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 694766652971c7fa26becd495925dd7ba0ddee7d) Reviewed-on: https://gerrit.libreoffice.org/10938 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--tools/source/stream/stream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 0ed749ebddfd..e320f6f2d40f 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -783,7 +783,7 @@ bool SvStream::WriteLine(const OString& rStr)
bool SvStream::WriteUniOrByteChar( sal_Unicode ch, rtl_TextEncoding eDestCharSet )
{
if ( eDestCharSet == RTL_TEXTENCODING_UNICODE )
- WriteChar(ch);
+ WriteUnicode(ch);
else
{
OString aStr(&ch, 1, eDestCharSet);