ae68a7
From 082f2faf5007812bac6a1f783c7dcc6f49d761fe Mon Sep 17 00:00:00 2001
ae68a7
From: Werner Lemberg <wl@gnu.org>
ae68a7
Date: Wed, 24 May 2017 07:40:46 +0200
ae68a7
Subject: [PATCH] [bdf, pcf] Support ISO646.1991-IRV character encoding (aka
ae68a7
 ASCII).
ae68a7
MIME-Version: 1.0
ae68a7
Content-Type: text/plain; charset=UTF-8
ae68a7
Content-Transfer-Encoding: 8bit
ae68a7
ae68a7
Problem reported by Marek Kašík <mkasik@redhat.com>, cf.
ae68a7
ae68a7
  https://bugzilla.redhat.com/show_bug.cgi?id=1451795
ae68a7
ae68a7
* src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfdrivr.c
ae68a7
(PCF_Face_Init): Implement it.
ae68a7
---
ae68a7
 ChangeLog          | 11 +++++++++++
ae68a7
 src/bdf/bdfdrivr.c |  6 +++++-
ae68a7
 src/pcf/pcfdrivr.c |  6 +++++-
ae68a7
 3 files changed, 21 insertions(+), 2 deletions(-)
ae68a7
ae68a7
diff --git a/src/bdf/bdfdrivr.c b/src/bdf/bdfdrivr.c
ae68a7
index a2242be0..c0a5a5c5 100644
ae68a7
--- a/src/bdf/bdfdrivr.c
ae68a7
+++ b/src/bdf/bdfdrivr.c
ae68a7
@@ -545,7 +545,11 @@ THE SOFTWARE.
ae68a7
               if ( !ft_strcmp( s, "10646" )                      ||
ae68a7
                    ( !ft_strcmp( s, "8859" ) &&
ae68a7
                      !ft_strcmp( face->charset_encoding, "1" ) ) )
ae68a7
-              unicode_charmap = 1;
ae68a7
+                unicode_charmap = 1;
ae68a7
+              /* another name for ASCII */
ae68a7
+              else if ( !ft_strcmp( s, "646.1991" )                 &&
ae68a7
+                        !ft_strcmp( face->charset_encoding, "IRV" ) )
ae68a7
+                unicode_charmap = 1;
ae68a7
             }
ae68a7
 
ae68a7
             {
ae68a7
diff --git a/src/pcf/pcfdrivr.c b/src/pcf/pcfdrivr.c
ae68a7
index 9f4d36d1..50530941 100644
ae68a7
--- a/src/pcf/pcfdrivr.c
ae68a7
+++ b/src/pcf/pcfdrivr.c
ae68a7
@@ -387,7 +387,11 @@ THE SOFTWARE.
ae68a7
           if ( !ft_strcmp( s, "10646" )                      ||
ae68a7
                ( !ft_strcmp( s, "8859" ) &&
ae68a7
                  !ft_strcmp( face->charset_encoding, "1" ) ) )
ae68a7
-          unicode_charmap = 1;
ae68a7
+            unicode_charmap = 1;
ae68a7
+          /* another name for ASCII */
ae68a7
+          else if ( !ft_strcmp( s, "646.1991" )                 &&
ae68a7
+                    !ft_strcmp( face->charset_encoding, "IRV" ) )
ae68a7
+            unicode_charmap = 1;
ae68a7
         }
ae68a7
       }
ae68a7
 
ae68a7
-- 
ae68a7
2.13.0
ae68a7