# HG changeset patch # User Kenichi Handa # Date 899949753 0 # Node ID 3e3949ac4cfbe9662bba4d0c14f74138cc587a43 # Parent 2d00337b71528aba396b2d1df5612823029b5436 (DECODE_ISO_CHARACTER): While decoding two-byte code, if the sencond byte is invalid, produce the first byte as is. diff -r 2d00337b7152 -r 3e3949ac4cfb src/coding.c --- a/src/coding.c Thu Jul 09 02:02:33 1998 +0000 +++ b/src/coding.c Thu Jul 09 02:02:33 1998 +0000 @@ -884,21 +884,21 @@ *dst++ = 0xFF; \ coding->composing += 2; \ } \ - if ((charset) >= 0) \ + if (charset_alt >= 0) \ { \ - if (CHARSET_DIMENSION (charset) == 2) \ + if (CHARSET_DIMENSION (charset_alt) == 2) \ { \ ONE_MORE_BYTE (c2); \ if (iso_code_class[(c2) & 0x7F] != ISO_0x20_or_0x7F \ && iso_code_class[(c2) & 0x7F] != ISO_graphic_plane_0) \ { \ src--; \ - c2 = ' '; \ + charset_alt = CHARSET_ASCII; \ } \ } \ if (!NILP (translation_table) \ && ((c_alt = translate_char (translation_table, \ - -1, (charset), c1, c2)) >= 0)) \ + -1, charset_alt, c1, c2)) >= 0)) \ SPLIT_CHAR (c_alt, charset_alt, c1, c2); \ } \ if (charset_alt == CHARSET_ASCII || charset_alt < 0) \