From abb0cf5fc9b1cf39ea02ed6198595dfea3ff0ca4 Mon Sep 17 00:00:00 2001 From: yangbo Date: Wed, 18 Jan 2023 10:59:33 +0800 Subject: [PATCH] Add sniffing warning Signed-off-by: yangbo --- backport-0001-Add-meta-sniffing-warning.patch | 28 +++++++++++++++++++ perl-XML-LibXML.spec | 7 ++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 backport-0001-Add-meta-sniffing-warning.patch diff --git a/backport-0001-Add-meta-sniffing-warning.patch b/backport-0001-Add-meta-sniffing-warning.patch new file mode 100644 index 0000000..5e63990 --- /dev/null +++ b/backport-0001-Add-meta-sniffing-warning.patch @@ -0,0 +1,28 @@ +From 8465180e379bb0873c248afc937bae9aa03e0a60 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E7=A9=8D=E4=B8=B9=E5=B0=BC=20Dan=20Jacobson?= + +Date: Mon, 21 Jun 2021 22:45:47 +0800 +Subject: [PATCH 01/11] Add sniffing warning + +--- + docs/libxml.dbk | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/docs/libxml.dbk b/docs/libxml.dbk +index c7a4208..b307510 100644 +--- a/docs/libxml.dbk ++++ b/docs/libxml.dbk +@@ -2598,7 +2598,9 @@ print {$out_fh} $doc->toString; + + + toStringHTML serialize the tree to a byte string in the document encoding as HTML. With this method indenting is automatic and managed by +- libxml2 internally. ++ libxml2 internally. Note the string must contain ++ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> (and not newer <meta charset="utf-8">), ++ else all non-ASCII will become entities. + + + +-- +2.39.0.windows.2 + diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec index d9cd8c3..75639cf 100644 --- a/perl-XML-LibXML.spec +++ b/perl-XML-LibXML.spec @@ -1,6 +1,6 @@ Name: perl-XML-LibXML Version: 2.0207 -Release: 2 +Release: 3 Epoch: 1 Summary: Perl Binding for libxml2 License: (GPL+ or Artistic) and MIT @@ -24,6 +24,8 @@ Requires(preun): perl-interpreter Provides: perl-XML-LibXML-Common = %{version} Obsoletes: perl-XML-LibXML-Common <= 0.13 +Patch0001: backport-0001-Add-meta-sniffing-warning.patch + %description This module is Perl Binding for libxml2, which implements a Perl interface to the GNOME libxml2 library. This module provides interfaces for parsing and @@ -77,6 +79,9 @@ fi %{_mandir}/man*/* %changelog +* Wed Jan 18 2023 yangbo - 1:2.0207-3 +- Add sniffing warning + * Tue Oct 25 2022 jiangchuangang - 1:2.0207-2 - use macros package_help -- Gitee