comparison src/coding.c @ 25860:1c730f145aa2

(DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR correctly.
author Kenichi Handa <handa@m17n.org>
date Mon, 04 Oct 1999 00:12:34 +0000
parents 0a7261c1d487
children f54ca66e2571
comparison
equal deleted inserted replaced
25859:1b8338fd30cd 25860:1c730f145aa2
222 if (((c) | 0x80) < 0xA0) \ 222 if (((c) | 0x80) < 0xA0) \
223 coding->fake_multibyte = 1; \ 223 coding->fake_multibyte = 1; \
224 } \ 224 } \
225 else \ 225 else \
226 { \ 226 { \
227 *dst++ = (c); \ 227 /* If ASCII charset is invoked to GR, \
228 we must reset MSB now. */ \
229 *dst++ = (c) & 0x7F; \
228 coding->produced_char++; \ 230 coding->produced_char++; \
229 if ((c) >= 0x80) \
230 coding->fake_multibyte = 1; \
231 } \ 231 } \
232 } while (0) 232 } while (0)
233 233
234 /* Decode one DIMENSION1 character whose charset is CHARSET and whose 234 /* Decode one DIMENSION1 character whose charset is CHARSET and whose
235 position-code is C. */ 235 position-code is C. */