After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666057 - Entity names in attribute strings are not parsed/converted.
Entity names in attribute strings are not parsed/converted.
Status: RESOLVED OBSOLETE
Product: lasem
Classification: Other
Component: Mathml
0.3.x
Other Linux
: Normal normal
: ---
Assigned To: lasem-maint
lasem-maint
Depends on: 667118
Blocks:
 
 
Reported: 2011-12-13 03:58 UTC by nakamoto
Modified: 2018-08-03 19:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Attribute entity parsing hack (2.70 KB, patch)
2012-01-02 09:51 UTC, Emmanuel Pacaud
none Details | Review

Description nakamoto 2011-12-13 03:58:13 UTC
While lasem parses entity named in body text correctly, it doesn't in attribute strings.

For exapmle, the mathml below is rendered correctly,

<mo>&lfloor;</mo><mo>&rfloor;</mo>

however, the one blow isn't. A warning is shown as :
Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

<mfenced open="&lfloor;" close="&rfloor;"></mfenced>


The one below works.

<mfenced open="&#x230a;" close="&#x230b;"></mfenced>
Comment 1 Emmanuel Pacaud 2012-01-02 09:51:03 UTC
Created attachment 204441 [details] [review]
Attribute entity parsing hack

In order to parse entities in attribute value, libxml parser should be given the XML_PARSE_NOENT option. Unfortunately, there is no API when using xmlSAXUserParseMemory.

Here's a hack that enables entity parsing in attribute values.
Comment 2 nakamoto 2012-01-02 13:27:41 UTC
Are you going to incorporate the patch into th main trunk ?
Comment 3 Emmanuel Pacaud 2012-01-02 13:45:39 UTC
I'm not sure yet. It depends on the answer to the blocking bug 667118.
Comment 4 André Klapper 2012-04-04 10:19:30 UTC
Mass-fixing incorrect QA contact scheme for lasem so interested people can
follow its development. (See 580127#c1 for ref.)
Comment 5 GNOME Infrastructure Team 2018-08-03 19:58:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/lasem/issues/5.