]> code.delx.au - gnu-emacs/commitdiff
(DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
authorKenichi Handa <handa@m17n.org>
Mon, 4 Oct 1999 00:12:34 +0000 (00:12 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 4 Oct 1999 00:12:34 +0000 (00:12 +0000)
correctly.

src/coding.c

index 534a5f75d23c04bf2c70632d8f55218243ba4241..5a4a4c8c9a666e30d07783818a1faa58d56105a1 100644 (file)
@@ -224,10 +224,10 @@ encode_coding_XXX (coding, source, destination, src_bytes, dst_bytes)
       }                                                \
     else                                       \
       {                                                \
-       *dst++ = (c);                           \
+       /* If ASCII charset is invoked to GR,   \
+          we must reset MSB now.  */           \
+       *dst++ = (c) & 0x7F;                    \
        coding->produced_char++;                \
-       if ((c) >= 0x80)                        \
-         coding->fake_multibyte = 1;           \
       }                                                \
   } while (0)