(setup_coding_system): Don't override the explicitly specified
authorKenichi Handa <handa@m17n.org>
Tue, 18 Jul 2000 04:32:08 +0000 (04:32 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 18 Jul 2000 04:32:08 +0000 (04:32 +0000)
designations.

src/coding.c

index 3a53c95..a42fbee 100644 (file)
@@ -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.  */