From 96148065345f7ed2ef5f80cc8347019dedecf23a Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 18 Jul 2000 04:32:08 +0000 Subject: [PATCH] (setup_coding_system): Don't override the explicitly specified designations. --- src/coding.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/coding.c b/src/coding.c index 3a53c95e7e7..a42fbee3a69 100644 --- a/src/coding.c +++ b/src/coding.c @@ -3141,10 +3141,12 @@ setup_coding_system (coding_system, coding) if (reg_bits) 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 - used CHARSET. */ + used by CHARSET. */ /* We had better avoid designating a charset of CHARS96 to REG 0 as far as possible. */ -- 2.39.2