Impossible to use some 5.5.2 and 5.5.1 diagrams in 6.0.1
Reported by Eric
Modele electrochimique.zcos (27.87 KB, application/zip)
Simple math calculations in xcos not time dependant
BUG DESCRIPTION:
----------------
5.5.2 working diagram are corrupted by xcos 6.0.1
ERROR LOG:
----------
xcosDiagramToScilab: Octet 2 de la séquence UTF-8 à 2 octets non valide.
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:701)
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:372)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1895)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1187)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:858)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(XMLNSDocumentScannerImpl.java:447)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:250)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at org.scilab.modules.xcos.io.spec.ContentEntry.load(Unknown Source)
at org.scilab.modules.xcos.io.spec.XcosPackage.load(Unknown Source)
at org.scilab.modules.xcos.io.XcosFileType$1.load(Unknown Source)
at org.scilab.modules.xcos.Xcos.xcosDiagramToScilab(Unknown Source)
HOW TO REPRODUCE THE BUG:
-------------------------
Open attached file in 6.0.1
Save as "newfilename" with 6.0.1
Close xcos and scilab
Open newfilename
The diagram is blank
or type in the command lines
xcos
scs_m=xcosDiagramToScilab("Modele electrochimique.zcos");
xcosDiagramToScilab("Modele electrochimique_v6.zcos",scs_m);
scs_m2=xcosDiagramToScilab("Modele electrochimique_v6.zcos");
Does not reproduce with most 5.5.1 demo files.
OTHER INFORMATION:
------------------