]> git.eshelyaron.com Git - emacs.git/commitdiff
(read1): While reading a string, set force_singlebyte
authorKenichi Handa <handa@m17n.org>
Fri, 30 May 2003 06:04:17 +0000 (06:04 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 30 May 2003 06:04:17 +0000 (06:04 +0000)
and force_multibyte correctly.

src/lread.c

index 7e4ed5272e8813d1ff281f5d4f9f64c81dca6811..8f990aaeb117017171169766b8d10e6f87384422 100644 (file)
@@ -2369,6 +2369,10 @@ read1 (readcharfun, pch, first_in_list)
            else
              {
                p += CHAR_STRING (c, (unsigned char *) p);
+               if (CHAR_BYTE8_P (c))
+                 force_singlebyte = 1;
+               else if (! ASCII_CHAR_P (c))
+                 force_multibyte = 1;
              }
            nchars++;
          }