(char_encode_iso2022): Output `~' if ISO 2022 coded-charset is not
authortomo <tomo>
Tue, 16 Nov 1999 20:25:23 +0000 (20:25 +0000)
committertomo <tomo>
Tue, 16 Nov 1999 20:25:23 +0000 (20:25 +0000)
found.

src/text-coding.c

index fd1dc8f..7ce8b94 100644 (file)
@@ -4837,6 +4837,11 @@ char_encode_iso2022 (struct encoding_stream *str, Emchar ch,
                               Vdefault_coded_charset_priority_list));
            }
          BREAKUP_CHAR (ch, charset, byte1, byte2);
+         if (!XCHARSET_FINAL (charset))
+           {
+             charset = Vcharset_ascii;
+             byte1 = '~';
+           }
        found:
          Vdefault_coded_charset_priority_list
            = original_default_coded_charset_priority_list;