Bug#1036872: net.sourceforge.jeuclid.MathMLParserSupport fails to parse XML strings
    Pierre Gruet 
    pgt at debian.org
       
    Sun May 28 14:15:21 BST 2023
    
    
  
Package: libjeuclid-core-java
Version: 3.1.9-5
Severity: normal
Dear Maintainer,
While running scilab, I met an issue with MathML labels for axes, that were not
showing up. After digging into this, I saw this was a bug in
libjeuclid-core-java and I built the following minimal non-working example:
--------------------8<------------------
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import net.sourceforge.jeuclid.MathMLParserSupport;
public class Main {
    public static void main(String[] args) throws IOException, ParserConfigurationException, SAXException {
        String str = new String("<mathml><mrow><mfrac><mrow><mi>d</mi><mi>y</mi></mrow><mrow><mi>d</mi><mi>x</mi></mrow></mfrac><mo>=</mo><mfrac><mn>1</mn><msup><mi>y</mi><mn>2</mn></msup></mfrac></mrow></mathml>");
        System.out.println(MathMLParserSupport.parseString(str));
    }
}
--------------------8<------------------
The output is:
--------------------8<------------------
[#document: null]
--------------------8<------------------
Thanks a lot for your help on this,
Cheers,
-- 
Pierre
- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing'), (90, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libjeuclid-core-java depends on:
ii  libbatik-java                1.16+dfsg-1
ii  libcommons-logging-java      1.2-3
ii  libxmlgraphics-commons-java  2.8-2
libjeuclid-core-java recommends no packages.
libjeuclid-core-java suggests no packages.
-- no debconf information
    
    
More information about the debian-science-maintainers
mailing list