]> git.eshelyaron.com Git - emacs.git/commitdiff
(ccl-encode-koi8, ccl-encode-koi8-u)
authorDave Love <fx@gnu.org>
Tue, 26 Nov 2002 18:16:58 +0000 (18:16 +0000)
committerDave Love <fx@gnu.org>
Tue, 26 Nov 2002 18:16:58 +0000 (18:16 +0000)
(ccl-encode-alternativnyj): Deal with unencodable characters.

lisp/language/cyrillic.el

index d49996a0e64585a062b2101b2f1d93d7d3b78f09..47cf5349f221113bd1b591ee1f485a9364e37a91 100644 (file)
     ((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 @@ This works whether or not the table is Unicode-based or
     ((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 @@ This works whether or not the table is Unicode-based or
     ((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.")