slackware-current/source/ap/groff/0006-Revert-upstream-change-of-mapping-special-characters.patch
Patrick J Volkerding 8a05a39fd3 Tue Apr 16 18:50:13 UTC 2024
a/elogind-255.4_r2-x86_64-1.txz:  Upgraded.
  Prefer SuspendMode=deep. Thanks to LuckyCyborg.
  Make 10-elogind.conf .new (but it will still be forced in this time).
  Fix reading login.conf. Thanks to af7567.
  This branch is feeling a bit alpha to me, but we'll stick with it for now.
ap/groff-1.23.0-x86_64-2.txz:  Rebuilt.
  [PATCH] Revert upstream change of mapping special characters for UTF-8.
  Thanks to Stuart Winter.
l/mozjs115-115.10.0esr-x86_64-1.txz:  Upgraded.
l/python-hatchling-1.24.0-x86_64-1.txz:  Upgraded.
n/bluez-5.75-x86_64-1.txz:  Upgraded.
x/libxcb-1.17.0-x86_64-1.txz:  Upgraded.
xap/mozilla-firefox-115.10.0esr-x86_64-1.txz:  Upgraded.
  This update contains security fixes and improvements.
  For more information, see:
    https://www.mozilla.org/en-US/firefox/115.10.0/releasenotes/
    https://www.mozilla.org/security/advisories/mfsa2024-19/
    https://www.cve.org/CVERecord?id=CVE-2024-3852
    https://www.cve.org/CVERecord?id=CVE-2024-3854
    https://www.cve.org/CVERecord?id=CVE-2024-3857
    https://www.cve.org/CVERecord?id=CVE-2024-2609
    https://www.cve.org/CVERecord?id=CVE-2024-3859
    https://www.cve.org/CVERecord?id=CVE-2024-3861
    https://www.cve.org/CVERecord?id=CVE-2024-3863
    https://www.cve.org/CVERecord?id=CVE-2024-3302
    https://www.cve.org/CVERecord?id=CVE-2024-3864
  (* Security fix *)
2024-04-16 21:36:10 +02:00

76 lines
2.9 KiB
Diff

https://src.fedoraproject.org/rpms/groff/raw/rawhide/f/0006-Revert-upstream-change-of-mapping-special-characters.patch
From f4f76740ad4693cb967801e366f1d6410381dd71 Mon Sep 17 00:00:00 2001
From: groff owner <groff-owner@fedoraproject.org>
Date: Thu, 2 Nov 2023 13:09:37 +0000
Subject: [PATCH] Revert upstream change of mapping special characters for
UTF-8
Adopt Debian decision: https://salsa.debian.org/debian/groff/-/commit/d5394c68d70e6c5199b01d2522e094c8fd52e64e
---
tmac/man.local | 16 ++++++++++++++++
tmac/mdoc.local | 17 ++++++++++++++++-
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/tmac/man.local b/tmac/man.local
index 5daa507..4bed937 100644
--- a/tmac/man.local
+++ b/tmac/man.local
@@ -2,6 +2,22 @@
.\"
.\" Put local modifications to groff_man(7)'s behavior here.
.\"
+.\" Adopting Debian's decision to preserve old mapping for UTF-8
+.\" Debian: As of groff 1.23.0, the "-", "'", "`", "^", and "~" input
+.\" characters are mapped to non-Basic Latin code points in output from
+.\" the "utf8" device, for consistency with other output devices such as
+.\" PDF. Unfortunately in practice this still causes far too much
+.\" disruption for innocent users of manual pages who just want to be able
+.\" to search for characters normally, so preserve the old behaviour.
+.\" Comment this out if you want to make sure that manual pages you're
+.\" writing are clear of these problems.
+.if '\*[.T]'utf8' \{\
+. char - \-
+. char ' \[aq]
+. char ` \[ga]
+. char ^ \[ha]
+. char ~ \[ti]
+.\}
.\" Change "0" to "1" to enable OSC 8 links on SGR-capable grotty(1)
.\" output devices.
.if !'\*[.T]'html' \
diff --git a/tmac/mdoc.local b/tmac/mdoc.local
index 94688ab..1bb47d6 100644
--- a/tmac/mdoc.local
+++ b/tmac/mdoc.local
@@ -2,6 +2,22 @@
.\"
.\" Put local modifications to groff_mdoc(7)'s behavior here.
.\"
+.\" Adopting Debian's decision to preserve old mapping for UTF-8
+.\" Debian: As of groff 1.23.0, the "-", "'", "`", "^", and "~" input
+.\" characters are mapped to non-Basic Latin code points in output from
+.\" the "utf8" device, for consistency with other output devices such as
+.\" PDF. Unfortunately in practice this still causes far too much
+.\" disruption for innocent users of manual pages who just want to be able
+.\" to search for characters normally, so preserve the old behaviour.
+.\" Comment this out if you want to make sure that manual pages you're
+.\" writing are clear of these problems.
+.if '\*[.T]'utf8' \{\
+. char - \-
+. char ' \[aq]
+. char ` \[ga]
+. char ^ \[ha]
+. char ~ \[ti]
+.\}
.\" "CW" is not a portable font name, but some man pages use it anyway.
.\" Uncomment this to suppress warnings produced by such pages. This
.\" test remaps the font to roman ("R") on nroff (terminal) devices. You
@@ -12,4 +28,3 @@
.\" mode: nroff
.\" fill-column: 72
.\" End:
-.\" vim: set filetype=groff textwidth=72:
--
2.41.0