summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-17 20:32:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-17 20:55:30 +0000
commit734cadff24b3e8555b40c58b4abd1f1c366c25cb (patch)
tree0b4e3dd5db774444e4c7c28f316fdc020c3b74b1
parent74063b259e7da402ede7761194639462b1b24759 (diff)
crashtesting: plain-text import allows liberal with the UTF-8 input
see ImplConvertUtf8ToUnicode which allows surrogates, so we need a non-liberal utf-input there if we want to enfore non-liberal utf-output here. Change-Id: I713818d7b6d79922d9b08f2b137a803384eccb65
-rw-r--r--sax/source/tools/fastserializer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index 8437ff0284e4..b81886ef321f 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -94,7 +94,7 @@ namespace sax_fastparser {
void FastSaxSerializer::write( const OUString& sOutput, bool bEscape )
{
- write( sOutput.toUtf8(), bEscape );
+ write( OUStringToOString(sOutput, RTL_TEXTENCODING_UTF8), bEscape );
}