changeset 82214:7fa775bf0fd4

(readevalloop, read1): Treat NBSP as whitespace.
author Richard M. Stallman <rms@gnu.org>
date Mon, 30 Jul 2007 20:07:02 +0000
parents feaa257d4fe3
children 42532f799380
files src/lread.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Mon Jul 30 17:39:01 2007 +0000
+++ b/src/lread.c	Mon Jul 30 20:07:02 2007 +0000
@@ -1501,7 +1501,8 @@
 	}
 
       /* Ignore whitespace here, so we can detect eof.  */
-      if (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r')
+      if (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r'
+	  || c == 0x8a0)  /* NBSP */
 	goto read_next;
 
       if (!NILP (Vpurify_flag) && c == '(')
@@ -2693,7 +2694,9 @@
       }
     default:
     default_label:
-      if (c <= 040) goto retry;
+      if (c <= 040) goto retry;	
+      if (c == 0x8a0) /* NBSP */
+	goto retry;
       {
 	char *p = read_buffer;
 	int quoted = 0;
@@ -2702,6 +2705,7 @@
 	  char *end = read_buffer + read_buffer_size;
 
 	  while (c > 040
+		 && c != 0x8a0 /* NBSP */
 		 && (c >= 0200
 		     || (!index ("\"';()[]#", c)
 			 && !(!first_in_list && c == '`')