From b28c2d111e9d02ea1a42ac27a1330b0ba1efb4a6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Nov 2018 13:58:34 -0800 Subject: Fix iso8859-7 mappings for 0xA1, 0xA2, & 0xFF Fixes: https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues/1 Signed-off-by: Alan Coopersmith --- src/fontenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fontenc.c b/src/fontenc.c index 0fafd2f..c4ccd5e 100644 --- a/src/fontenc.c +++ b/src/fontenc.c @@ -274,14 +274,14 @@ iso8859_7_to_unicode(unsigned isocode, void *client_data) isocode == 0xB7 || isocode == 0xBB || isocode == 0xBD) return isocode; else if (isocode == 0xA1) - return 0x02BD; + return 0x2018; else if (isocode == 0xA2) - return 0x02BC; + return 0x2019; else if (isocode == 0xAF) return 0x2015; else if (isocode == 0xD2) /* unassigned */ return 0; - else if (isocode >= 0xB4) + else if (isocode >= 0xB4 && isocode <= 0xFE) return isocode - 0xA0 + 0x0370; else return 0; -- cgit v1.2.3