changeset 30263:b8083f5b4b7c

(setup_coding_system): Don't override the explicitly specified designations.
author Kenichi Handa <handa@m17n.org>
date Tue, 18 Jul 2000 04:32:08 +0000
parents 45c7724b3cbe
children 0f70c0c64a49
files src/coding.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Jul 18 04:31:25 2000 +0000
+++ b/src/coding.c	Tue Jul 18 04:32:08 2000 +0000
@@ -3141,10 +3141,12 @@
 	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.  */