[xml/sgml-pkgs] Bug#942662: libxml2: rejects valid NCName characters

brian m. carlson sandals at crustytoothpaste.net
Sat Oct 19 20:06:27 BST 2019


Package: libxml2
Version: 2.9.4+dfsg1-7+b3
Severity: normal

XML 1.0 Fifth Edition dramatically increased the range of characters
allowed in an NCName, and therefore in an ID (such as an xml:id
attribute).  However, libxml2 is still using the obsolete fourth
edition, which means that it rejects well-formed documents.

For example, the following is a well-formed document which is rejected:

---
<a xml:id="_ⅰ"/>
---

Because the document is erroneously considered ill-formed, xsltproc
cannot process it, either.

The fifth edition came out in 2008, so this is not a new phenomenon.  In
fact, upstream has a bug open with fixed files at
https://bugzilla.gnome.org/show_bug.cgi?id=675373; a suitable patch
should be applied to the Debian package.  If desired, I can synthesize
the files in that bug report into an actual patch, should it be applied.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-trunk-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libxml2 depends on:
ii  libc6     2.29-2
ii  libicu63  63.2-2
ii  liblzma5  5.2.4-1+b1
ii  zlib1g    1:1.2.11.dfsg-1+b1

libxml2 recommends no packages.

libxml2 suggests no packages.

-- no debconf information

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-xml-sgml-pkgs/attachments/20191019/482a0317/attachment.sig>


More information about the debian-xml-sgml-pkgs mailing list