changeset 38473:f5a9d9707da5

* coding.c (setup_coding_system): Don't do any designation based on reg_bits if charset is not yet defined.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 17 Jul 2001 16:29:39 +0000
parents 2f035dea6508
children 86bc182c8651
files src/ChangeLog src/coding.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Jul 17 13:00:51 2001 +0000
+++ b/src/ChangeLog	Tue Jul 17 16:29:39 2001 +0000
@@ -1,3 +1,8 @@
+2001-07-17  Ken Raeburn  <raeburn@gnu.org>
+
+	* coding.c (setup_coding_system): Don't do any designation based
+	on reg_bits if charset is not yet defined.
+
 2001-07-17  Gerd Moellmann  <gerd@gnu.org>
 
 	* keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
--- a/src/coding.c	Tue Jul 17 13:00:51 2001 +0000
+++ b/src/coding.c	Tue Jul 17 16:29:39 2001 +0000
@@ -3638,7 +3638,7 @@
 	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))
 		{