diff src/mule-coding.c @ 3695:42e4605ef1de

[xemacs-hg @ 2006-11-23 13:43:17 by aidan] Handle bytes in the range 0x80-0xC0 better when dealing with ISO-IR 196.
author aidan
date Thu, 23 Nov 2006 13:43:29 +0000
parents d1754e7f0cea
children 1abf84db2c7f
line wrap: on
line diff
--- a/src/mule-coding.c	Wed Nov 22 22:51:11 2006 +0000
+++ b/src/mule-coding.c	Thu Nov 23 13:43:29 2006 +0000
@@ -1949,8 +1949,11 @@
 		  counter = 1;
 		}
 	      else
-		/* ASCII, or the lower control characters. */
-		Dynarr_add (dst, c);
+		/* ASCII, or the lower control characters.
+                   
+                   Perhaps we should signal an error if the character is in
+                   the range 0x80-0xc0; this is illegal UTF-8. */
+                Dynarr_add (dst, (c & 0x7f));
 
 	      break;
 	    case 1: