diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-11-11 13:58:34 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-11-11 13:59:55 -0800 |
commit | b28c2d111e9d02ea1a42ac27a1330b0ba1efb4a6 (patch) | |
tree | 72b33750e72b9b1058c3e733fc1bc66707dc101c | |
parent | 8d30ca25b54934e29206da64e80c044d05b14470 (diff) |
Fix iso8859-7 mappings for 0xA1, 0xA2, & 0xFF
Fixes: https://gitlab.freedesktop.org/xorg/lib/libfontenc/issues/1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/fontenc.c | 6 |
1 files 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; |