[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sc/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Tue Feb 18 06:28:47 CET 2014


 sc/source/filter/excel/xestream.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d6e600952403dacbcbf684a30b48ff5c4765ec55
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Tue Feb 18 02:23:59 2014 +0100

    the string is UTF8 and not Ascii
    
    Change-Id: Ibf9a837ca5689ceae91eff2a081da3b7fe0b9244
    Reviewed-on: https://gerrit.libreoffice.org/8094
    Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
    Tested-by: Kohei Yoshida <libreoffice at kohei.us>

diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index 795f86ba..97676df 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -1016,7 +1016,7 @@ sax_fastparser::FSHelperPtr& XclExpXmlStream::WriteAttributesInternal( sal_Int32
             rStream->write( " " )
                 ->writeId( nAttribute )
                 ->write( "=\"" )
-                ->writeEscaped( pValue )
+                ->writeEscaped( OUString(pValue, std::strlen(pValue), RTL_TEXTENCODING_UTF8) )
                 ->write( "\"" );
         }
 


More information about the Libreoffice-commits mailing list