changeset 88889:4548f224c603

(Ffind_coding_systems_region_internal): Detect an ASCII only string correctly.
author Kenichi Handa <handa@m17n.org>
date Thu, 25 Jul 2002 02:01:23 +0000
parents 1b6e73e289bc
children 2424aadfbf55
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Jul 25 01:30:27 2002 +0000
+++ b/src/coding.c	Thu Jul 25 02:01:23 2002 +0000
@@ -6438,7 +6438,7 @@
 /* Return a list of coding systems that safely encode the text between
    START and END.  If EXCLUDE is non-nil, it is a list of coding
    systems not to check.  The returned list doesn't contain any such
-   coding systems.  In any case, If the text contains only ASCII or is
+   coding systems.  In any case, if the text contains only ASCII or is
    unibyte, return t.  */
 
 DEFUN ("find-coding-systems-region-internal",
@@ -6457,7 +6457,7 @@
   if (STRINGP (start))
     {
       if (!STRING_MULTIBYTE (start)
-	  && XSTRING (start)->size != STRING_BYTES (XSTRING (start)))
+	  || XSTRING (start)->size == STRING_BYTES (XSTRING (start)))
 	return Qt;
       start_byte = 0;
       end_byte = STRING_BYTES (XSTRING (start));