changeset 48547:930e1c30b4ea

(ccl-encode-koi8, ccl-encode-koi8-u) (ccl-encode-alternativnyj): Deal with unencodable characters.
author Dave Love <fx@gnu.org>
date Tue, 26 Nov 2002 18:16:58 +0000
parents 12718f5f58aa
children b928795a85d8
files lisp/language/cyrillic.el
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/cyrillic.el	Tue Nov 26 18:16:28 2002 +0000
+++ b/lisp/language/cyrillic.el	Tue Nov 26 18:16:58 2002 +0000
@@ -140,6 +140,9 @@
     ((loop
       (read-multibyte-character r0 r1)
       (translate-character cyrillic-koi8-r-encode-table r0 r1)
+      (if (r0 != ,(charset-id 'eight-bit-graphic))
+	  (if (r0 != ,(charset-id 'eight-bit-control))
+	      (r1 = ??)))
       (write-repeat r1))))
   "CCL program to encode KOI8-R.")
 
@@ -277,6 +280,9 @@
     ((loop
       (read-multibyte-character r0 r1)
       (translate-character cyrillic-koi8-u-encode-table r0 r1)
+      (if (r0 != ,(charset-id 'eight-bit-graphic))
+	  (if (r0 != ,(charset-id 'eight-bit-control))
+	      (r1 = ??)))
       (write-repeat r1))))
   "CCL program to encode KOI8-U.")
 
@@ -375,6 +381,9 @@
     ((loop
       (read-multibyte-character r0 r1)
       (translate-character cyrillic-alternativnyj-encode-table r0 r1)
+      (if (r0 != ,(charset-id 'eight-bit-graphic))
+	  (if (r0 != ,(charset-id 'eight-bit-control))
+	      (r1 = ??)))
       (write-repeat r1))))
   "CCL program to encode Alternativnyj.")