(setup_coding_system): Don't override the explicitly specified

designations.
This commit is contained in:
Kenichi Handa 2000-07-18 04:32:08 +00:00
parent aa96c82019
commit 9614806534

View file

@ -3141,10 +3141,12 @@ setup_coding_system (coding_system, coding)
if (reg_bits) if (reg_bits)
for (charset = 0; charset <= MAX_CHARSET; charset++) for (charset = 0; charset <= MAX_CHARSET; charset++)
{ {
if (CHARSET_VALID_P (charset)) if (CHARSET_VALID_P (charset)
&& (CODING_SPEC_ISO_REQUESTED_DESIGNATION (coding, charset)
== CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION))
{ {
/* There exist some default graphic registers to be /* There exist some default graphic registers to be
used CHARSET. */ used by CHARSET. */
/* We had better avoid designating a charset of /* We had better avoid designating a charset of
CHARS96 to REG 0 as far as possible. */ CHARS96 to REG 0 as far as possible. */