* coding.c (setup_coding_system): Don't do any designation based on reg_bits if

charset is not yet defined.
This commit is contained in:
Ken Raeburn 2001-07-17 16:29:39 +00:00
parent 27009a49b5
commit 928a85c1ba
2 changed files with 6 additions and 1 deletions

View file

@ -3638,7 +3638,7 @@ setup_coding_system (coding_system, coding)
if (reg_bits)
for (charset = 0; charset <= MAX_CHARSET; charset++)
{
if (CHARSET_VALID_P (charset)
if (CHARSET_DEFINED_P (charset)
&& (CODING_SPEC_ISO_REQUESTED_DESIGNATION (coding, charset)
== CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION))
{