Bug 271981 - PPT filter produces invalid XML file.
Summary: PPT filter produces invalid XML file.
Status: RESOLVED FIXED
Alias: None
Product: calligrastage
Classification: Applications
Component: filter/ppt (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Matus Uzak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 14:25 UTC by Matus Uzak
Modified: 2011-05-20 13:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
A PPT file to open with Stage (882.00 KB, application/vnd.ms-powerpoint)
2011-04-29 14:25 UTC, Matus Uzak
Details
MS Word 2003 test file containing the same character causing conversion problems (23.50 KB, application/msword)
2011-05-09 20:27 UTC, Matus Uzak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matus Uzak 2011-04-29 14:25:22 UTC
Created attachment 59430 [details]
A PPT file to open with Stage

Version:           unspecified
OS:                Linux



Reproducible: Always

Steps to Reproduce:
1. Open the attached file with Stage (kpresenter) 

Actual Results:  
The dialog with following message is displayed: Error message: Unexpected ''.

Expected Results:  
The PPT filter should process the attached file properly.
Comment 1 Matus Uzak 2011-05-09 20:27:21 UTC
Created attachment 59811 [details]
MS Word 2003 test file containing the same character causing conversion problems
Comment 2 Matus Uzak 2011-05-09 20:36:19 UTC
There's probably a chinese character stored in UTF16.  We save it into content.xml and it causes problem for all of our applications and OOo.  I was playing for a while with QTextCodec, but didn't make any progress.  Both Ooo and MS Office 2007 simply ignore the character when converting to ODP.  Any approach on any mind?  Me not good in encodings.
Comment 3 Matus Uzak 2011-05-09 21:17:16 UTC
QXmlStreamReader Error Description:

Error: QXmlStreamReader::NotWellFormedError
TokenType: QXmlStreamReader::Invalid
errorString: "Unexpected ''."
Comment 4 Matus Uzak 2011-05-20 13:08:13 UTC
Fixed by Thorsten. Thanks! :)

Don't add unsupported chars into xml
author	Thorsten Zachmann
commit	44f3cd1b1f71de77a347d8699ec7cee32b66d7b9