deri pushed a commit to branch master
in repository groff.
commit 5661ceeabafeab55711a58d036493cd70b414cb8
Author: Deri James <[email protected]>
AuthorDate: Thu Sep 11 15:28:17 2025 +0100
[gropdf]: Fix.
* src/devices/gropdf/gropdf.pl (AssignGlyph): Check
if the glyph has a Unicode value before testing it!!!
Fixes <https://savannah.gnu.org/bugs/?67501> thanks to
Branden for the "heads up".
---
ChangeLog | 12 +++++++++++-
src/devices/gropdf/gropdf.pl | 2 +-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 40862ebe4..71022ff5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,14 @@
-2025-08-03 Deri James <[email protected]>
+2025-09-11 Deri James <[email protected]>
+
+ [gropdf]: Fix.
+
+ * src/devices/gropdf/gropdf.pl (AssignGlyph): Check
+ if the glyph has a Unicode value before testing it!!!
+
+ Fixes <https://savannah.gnu.org/bugs/?67501> thanks to
+ Branden for the "heads up".
+
+2025-09-11 Deri James <[email protected]>
[gropdf]: Handle TTF->PFB converted fonts better, and
restore cut'n'paste handling of '\-' mapped to U+2212.
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index a96d37c9a..5533ca5ac 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -4517,7 +4517,7 @@ sub AssignGlyph
{
($chf->[MINOR],$chf->[MAJOR])=($chf->[CHRCODE],0);
}
- elsif ($chf->[UNICODE] eq "2212") # minus
+ elsif (defined($chf->[UNICODE]) and $chf->[UNICODE] eq "2212") # minus
{
($chf->[MINOR],$chf->[MAJOR])=(31,0);
}
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit