I don't like that. No xml file should have any character before the
first '<'. Either the file is borked, or is not valid xml, or the stream
gets corrupted.
Regards,
Jean
Le jeudi 14 juin 2012 à 20:54 +0200, cvs@abisource.com a écrit :
> Author: bafna_p
> Date: 2012-06-14 20:54:22 +0200 (Thu, 14 Jun 2012)
> New Revision: 31386
>
> Modified:
> abiword/branches/gsoc2012math/plugins/mathview/xp/ie_imp_MathML.cpp
> Log:
> removing error from MathML file import
>
> Modified: abiword/branches/gsoc2012math/plugins/mathview/xp/ie_imp_MathML.cpp
> ===================================================================
> --- abiword/branches/gsoc2012math/plugins/mathview/xp/ie_imp_MathML.cpp 2012-06-14 14:51:59 UTC (rev 31385)
> +++ abiword/branches/gsoc2012math/plugins/mathview/xp/ie_imp_MathML.cpp 2012-06-14 18:54:22 UTC (rev 31386)
> @@ -373,7 +373,14 @@
> while (pStream->getChar(c))
> {
> uc = static_cast<unsigned char>(c);
> - BB.append(&uc,1);
> + // remove Unicode related error in Windows
> + if(BB.getLength() == 0)
> + {
> + if(uc=='<')
> + BB.append(&uc,1);
> + }
> + else
> + BB.append(&uc,1);
> }
> return m_EntityTable->convert(reinterpret_cast<const char *>(BB.getPointer(0)), BB.getLength(), *m_pByteBuf) ? UT_OK : UT_ERROR;
> }
>
> -----------------------------------------------
> To unsubscribe from this list, send a message to
> abisource-cvs-commit-request@abisource.com with the word
> unsubscribe in the message body.
Received on Thu Jun 14 21:21:20 2012
This archive was generated by hypermail 2.1.8 : Thu Jun 14 2012 - 21:21:20 CEST