Author: leiw Date: Thu Sep 27 07:36:48 2012 New Revision: 1390869 URL: http://svn.apache.org/viewvc?rev=1390869&view=rev Log: #i119415 VBA code can't load after open in AOO3.4
Patch by: Chen Peng Review by: Wang Lei Modified: incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx Modified: incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx?rev=1390869&r1=1390868&r2=1390869&view=diff ============================================================================== --- incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx (original) +++ incubator/ooo/trunk/main/oox/source/helper/textinputstream.cxx Thu Sep 27 07:36:48 2012 @@ -194,7 +194,7 @@ OUString TextInputStream::readToChar( sa const Reference< XComponentContext >& rxContext, const Reference< XInputStream >& rxInStrm, rtl_TextEncoding eTextEnc ) { Reference< XTextInputStream > xTextStrm; - const char* pcCharset = rtl_getMimeCharsetFromTextEncoding( eTextEnc ); + const char* pcCharset = rtl_getBestMimeCharsetFromTextEncoding( eTextEnc); OSL_ENSURE( pcCharset, "TextInputStream::createXTextInputStream - unsupported text encoding" ); if( rxContext.is() && rxInStrm.is() && pcCharset ) try {