From unknown Fri Sep 12 09:56:10 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#41094 <41094@debbugs.gnu.org>
To: bug#41094 <41094@debbugs.gnu.org>
Subject: Status: 28.0.50; `xml-print' produces invalid XML
Reply-To: bug#41094 <41094@debbugs.gnu.org>
Date: Fri, 12 Sep 2025 16:56:10 +0000
retitle 41094 28.0.50; `xml-print' produces invalid XML
reassign 41094 emacs
submitter 41094 Philipp
severity 41094 minor
thanks
From debbugs-submit-bounces@debbugs.gnu.org Tue May 05 08:31:44 2020
Received: (at submit) by debbugs.gnu.org; 5 May 2020 12:31:44 +0000
Received: from localhost ([127.0.0.1]:34966 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jVwjg-00057z-5l
for submit@debbugs.gnu.org; Tue, 05 May 2020 08:31:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:35016)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jVwje-00057r-2j
for submit@debbugs.gnu.org; Tue, 05 May 2020 08:31:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60190)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1jVwjd-0004VF-Sf
for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 08:31:41 -0400
Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:52126)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1jVwjc-000507-Me
for bug-gnu-emacs@gnu.org; Tue, 05 May 2020 08:31:41 -0400
Received: by mail-wm1-x332.google.com with SMTP id x4so2101945wmj.1
for ; Tue, 05 May 2020 05:31:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=vneB682oLKpi4re+X802IhwnguAflaw3pEAVzpHsfDA=;
b=oEnNWalHpmzO84x7/2+Js15FmqxQR7RtEF2B1TWA0qo22RdZFopE9E86VJ7oyJi4OE
uN5TlUq/rscnmv+OiI0Uw6U4urXNr3HQYIePtFsTB6XZDVhHkom0wvM00XCevRgY1IeU
gVr8hdx3XA1VHzNirEbgr+5hfkbx4XwsAdNyHrD4TICBC9QZFiW2Ao2saMydDAoM3OQo
J7yFy8JkeYz9IhTxOMjmVsVqAJDd+uZHvTgk4AZaxhbPCuMby87AK+lv8gTS4NegHS1B
5UnNeUcsM9XFoER8dLU/yAS337mJAdI33e2MHAUzJV8G8BHOC3KDBwBKy4a5qJqV29Nj
9bXA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=vneB682oLKpi4re+X802IhwnguAflaw3pEAVzpHsfDA=;
b=ahVSrUgRUcMxSolTekbsfkDYWnbdkRFIYtgQM767MoX6cJ7EDEdEZcTucSs/IEUJdH
uHVv96JXh9wOxOD+JSw+dKRDmEi55Xdfj1YTecqTKj4HwdFPEnYloag4sutNjyqJ30bB
NqpX0htqYOui7GAQ9T99xduR+YFT0/OsKbgjHJ7uYvEQ/QUpqGCVyOVJ8BvsQAExprv9
1+Vk11+C85NZMGLlhcAO72qH+lTAosAi8rCnPXJMSKsUNZB/4MeRYp+ss6PV4/1w/ZUa
pVvdM1ItV/Uu8LbPuaXqYQVnXoAOaH4g2JSk2m/K4yGHQclM2KxlPHAnDNfVmILU6Lxp
AKyg==
X-Gm-Message-State: AGi0Pua79K2qyb/O7spsI19k5BUYpJfHuAePxnIqHAQI/PTPWlpM4VdZ
I/SJW4x+ZZ2CsDozMpvSvmVvCXpD6jc=
X-Google-Smtp-Source: APiQypIYE0bfCokJZW0J2MxjqDDEbF61w4y2cab3PBR/6W3lDAdUdeAqsWkP/AOH1B0MXOMCruM/tg==
X-Received: by 2002:a1c:48c:: with SMTP id 134mr3034785wme.47.1588681898148;
Tue, 05 May 2020 05:31:38 -0700 (PDT)
Received: from p ([2a02:2455:2a2:100:3904:e879:8771:b46b])
by smtp.gmail.com with ESMTPSA id c20sm3786817wmd.36.2020.05.05.05.31.37
for
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 05 May 2020 05:31:37 -0700 (PDT)
From: Philipp
To: bug-gnu-emacs@gnu.org
Subject: 28.0.50; `xml-print' produces invalid XML
Date: Tue, 05 May 2020 14:31:36 +0200
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::332;
envelope-from=p.stephani2@gmail.com; helo=mail-wm1-x332.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
That's all we know.
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -2.1 (--)
For example:
emacs -Q -batch -l xml -eval '(with-temp-buffer (xml-print (quote ((foo nil "\0")))) (write-region nil nil "/tmp/test.xml"))' && xmllint /tmp/test.xml
/tmp/test.xml:1: parser error : Premature end of data in tag foo line 1
^
`xml-print' here generates a NUL character, which is invalid in XML
(cf. https://www.w3.org/TR/xml/#charsets). Probably `xml-escape-string'
should error out when encountering any invalid character (including
non-Unicode characters).
In GNU Emacs 28.0.50 (build 44, x86_64-apple-darwin19.3.0, NS appkit-1894.30 Version 10.15.3 (Build 19D76))
of 2020-04-12
Repository revision: 900947fbe8b202ce2ae15e87ef377ca27da73ec9
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description: Mac OS X 10.15.4
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --with-modules --without-xml2 --without-pop --with-mailutils
--enable-gcc-warnings=warn-only --enable-checking=all
--enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''
Configured features:
NOTIFY KQUEUE ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
JSON PDUMPER LCMS2 GMP
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec epa epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils phst skeleton
derived edmacro kmacro pcase ffap thingatpt url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map url-vars mailcap subr-x rx gnutls puny seq
byte-opt gv bytecomp byte-compile cconv dbus xml cl-loaddefs cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs)
Memory information:
((conses 16 63759 4957)
(symbols 48 8146 0)
(strings 32 22012 1765)
(string-bytes 1 705507)
(vectors 16 13330)
(vector-slots 8 171204 16342)
(floats 8 25 19)
(intervals 56 200 0)
(buffers 992 10))
From debbugs-submit-bounces@debbugs.gnu.org Wed May 20 11:48:22 2020
Received: (at control) by debbugs.gnu.org; 20 May 2020 15:48:22 +0000
Received: from localhost ([127.0.0.1]:54065 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jbQxB-0004sI-Of
for submit@debbugs.gnu.org; Wed, 20 May 2020 11:48:21 -0400
Received: from mail-il1-f182.google.com ([209.85.166.182]:35622)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jbQx9-0004s5-Ve
for control@debbugs.gnu.org; Wed, 20 May 2020 11:48:20 -0400
Received: by mail-il1-f182.google.com with SMTP id a14so3606961ilk.2
for ; Wed, 20 May 2020 08:48:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=Pn4hhQvTgNVRTppFgKDLOsssGUabYCLGI7+z92BfvH4=;
b=fBUiByNSuLZAjPbmGywNS1r8HB3iVu825RrfX7xu2BJ73SZkLpC3Eg2iOG7MNRKpY/
HRVAyN20nPii2DuFpiE7v8oosHGs57vxWt2G2Zety/xAmtVyqp8smxwdA3nV68DVpQIY
38ARH3T30zrhkFZA3RRjVFcJpR6NajFhT6yDhWXWH7M0YIOi0sluPVVBmRR4vo06KDJa
KvnKOU9UK4JQqKqtyUKIdkb8MAE+LGppCnqXuoHyBUJKjstKUKpW07ydtCGsOKwqGXoX
75HbjkFEDgSUGmAf9pB4cT1sp4tzLw4EDOkrkQsW+BuaoBnAMcN4I3lAswDcWgC7LJG4
a1mQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=Pn4hhQvTgNVRTppFgKDLOsssGUabYCLGI7+z92BfvH4=;
b=rrQr+a1fqX7bt3eBLiocWQBEeMJLhMNjXC8Kw/8pxswEi77xLeHxElyNb02xfH+UOs
dgk5kjj3e6iuldy6KJYc0nV3BIcnqIIuzlUpvTTtoHn+tzvsoA9V4sbkl6iEaRR843jY
KjKKN00eJiIk8Z51ObfuKsLmxjZTIkPBpbsobKrnLfuxHvWX483cqH916rQHbrMMn6qd
l51wTaIlwF7NssWxPPHrGHj4z/6ggBRL+q0lnoS132uDizZy4zGfTP9ssPc/iE7njIQT
ffglV7WcsWTwwyeRkp2aJdaemgCupU9AKC1hecRMidJFsuc5VY9UXPMr+V3WHI7zvJlu
M1/Q==
X-Gm-Message-State: AOAM5300hwkvXAHU3mfs0XZBfvpWAvdWa5OYnGg7Y3hNkC/U6ZGkI9gF
OLkYD2e03YpXF+UCO+yZ9cQzzQda
X-Google-Smtp-Source: ABdhPJyopNSFaXLD4NfnE5synarBVah9BoLQNzVOGzhweR4xA8gYdB4GPrzDBpHkxOZs2x6xp0KOQg==
X-Received: by 2002:a92:9e51:: with SMTP id q78mr4586712ili.268.1589989694166;
Wed, 20 May 2020 08:48:14 -0700 (PDT)
Received: from vhost2
(CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42])
by smtp.gmail.com with ESMTPSA id m17sm1520193ilh.51.2020.05.20.08.48.13
for
(version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256);
Wed, 20 May 2020 08:48:13 -0700 (PDT)
From: Noam Postavsky
To: control@debbugs.gnu.org
Subject: control message for bug #41410
Date: Wed, 20 May 2020 11:48:12 -0400
Message-ID: <85mu62ober.fsf@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
severity 41410 wishlist
tags 41410 + patch
tags 41239 + confirmed
severity 41094 minor
severity 41065 minor
severity 41029 wishlist
tags 41029 + patch
severity 40972 minor
severity 41328 wishlist
severity 41225 wishlist
quit
From debbugs-submit-bounces@debbugs.gnu.org Sat May 23 08:03:57 2020
Received: (at 41094-done) by debbugs.gnu.org; 23 May 2020 12:03:57 +0000
Received: from localhost ([127.0.0.1]:33551 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jcSsf-0002BZ-NW
for submit@debbugs.gnu.org; Sat, 23 May 2020 08:03:57 -0400
Received: from mail-oi1-f176.google.com ([209.85.167.176]:44340)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jcSse-0002BN-Jh
for 41094-done@debbugs.gnu.org; Sat, 23 May 2020 08:03:56 -0400
Received: by mail-oi1-f176.google.com with SMTP id y85so11618636oie.11
for <41094-done@debbugs.gnu.org>; Sat, 23 May 2020 05:03:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=U1a6vXjdzQPGEuFIetv2tUg6/isOdrFHPfx3TsaXjZI=;
b=HKBk5Xw//oVy0oL9tQVB/6lpTTOWekNK/gI93n0+ELUfpbPiTLa+vR0rM6uGilH/SY
6vUx2/a1AJDSIiDXJDkZB3wyuCiSFrbC1I16uyl9o8IcPfpLqJHMu7pF7Xu6gt5+2r29
c0dZADExVTIlbk+ANkOGSlNB8GYgAC9nNJ8CTF10JWyzwujNfpGpzwTkqiCbMm06GMGy
XXbAj8Oezaq9Cg0v014Fvyn9Z4Nf6woDPM/jbH/Q2ZOoK3TtHvb1r7mE3Z5QjFoJY2fr
hiDF4fQ2m5TxHvhbC+EVpgZDMjGK5avVwumuVyZr+QSr65R09StM8ZRJUNJo+oZRhoUW
sOdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=U1a6vXjdzQPGEuFIetv2tUg6/isOdrFHPfx3TsaXjZI=;
b=Se6frYYUEbd8CaaRzlpbViWd12Wn+JG7fl7J9P3M4EOub8lT/00EivEJAzfwSLI+rd
3IkvjXW5lr+xOf29S+rMy4+FDgJVrNZybC2Xu6BWmZXDAZOVtziFWtqetzZZvKM2Oyeb
lO55/lsTaZ5aJAVTK9+DUfXahxjgkwi/Bu4tq9Y1KHTuRCd9kMqBeltRjiBExzT4EOTY
a6R0cIsIAtoS/qMy2sxZHk0NBb1gnTgekvzv825mx8ICUaEWETMbWTF1bRJeDl0g5OXP
4IhuDfsuZduck+rqGJIbZkWQYdfTUKXEp1ihdvioccaea1I/qxsQGA0dQtmAfFgXvE66
9L8Q==
X-Gm-Message-State: AOAM533PdBG+h8Md7ZfIWMfl5QwbpjkM4HwF673HVhLjDrCDcsK0GVqq
RBFuO0fiPR34nskbow0lYQOMHPX4SQ0+HoTprLXo9aR4X1c=
X-Google-Smtp-Source: ABdhPJzfbWGHU0+9ynhBO1pzgvYpygT8V1PqlHtDzhkp43NsOBSHcMpiopO9vmRJ1ba96q1XbPUSRyVEhqDDr35Tgm8=
X-Received: by 2002:aca:564c:: with SMTP id k73mr5777377oib.9.1590235430845;
Sat, 23 May 2020 05:03:50 -0700 (PDT)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Sat, 23 May 2020 14:03:39 +0200
Message-ID:
Subject: Re: bug#41094: 28.0.50; `xml-print' produces invalid XML
To: 41094-done@debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 41094-done
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.8 (/)
Am Di., 5. Mai 2020 um 14:32 Uhr schrieb Philipp :
>
>
> For example:
>
> emacs -Q -batch -l xml -eval '(with-temp-buffer (xml-print (quote ((foo nil "\0")))) (write-region nil nil "/tmp/test.xml"))' && xmllint /tmp/test.xml
> /tmp/test.xml:1: parser error : Premature end of data in tag foo line 1
>
> ^
>
> `xml-print' here generates a NUL character, which is invalid in XML
> (cf. https://www.w3.org/TR/xml/#charsets). Probably `xml-escape-string'
> should error out when encountering any invalid character (including
> non-Unicode characters).
Fixed with commit f8581bcf6a.
From unknown Fri Sep 12 09:56:10 2025
Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control@debbugs.gnu.org
From: Debbugs Internal Request
Subject: Internal Control
Message-Id: bug archived.
Date: Sun, 21 Jun 2020 11:24:09 +0000
User-Agent: Fakemail v42.6.9
# This is a fake control message.
#
# The action:
# bug archived.
thanks
# This fakemail brought to you by your local debbugs
# administrator