aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2002-07-25 02:01:39 +0000
committerKenichi Handa2002-07-25 02:01:39 +0000
commit48468dac8761ac6ee98234b3a10016566f03c380 (patch)
treee109cb9d02fa36182c2d68dda787e69ebc9b4bdd /src/coding.c
parentab2a47e1cc2143009675bfc6b59fbdd4dc5a436e (diff)
downloademacs-48468dac8761ac6ee98234b3a10016566f03c380.tar.gz
emacs-48468dac8761ac6ee98234b3a10016566f03c380.zip
(Ffind_coding_systems_region_internal): Detect an
ASCII only string correctly.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index c307b2aca25..e19319abb2c 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6438,7 +6438,7 @@ char_encodable_p (c, attrs)
6438/* Return a list of coding systems that safely encode the text between 6438/* Return a list of coding systems that safely encode the text between
6439 START and END. If EXCLUDE is non-nil, it is a list of coding 6439 START and END. If EXCLUDE is non-nil, it is a list of coding
6440 systems not to check. The returned list doesn't contain any such 6440 systems not to check. The returned list doesn't contain any such
6441 coding systems. In any case, If the text contains only ASCII or is 6441 coding systems. In any case, if the text contains only ASCII or is
6442 unibyte, return t. */ 6442 unibyte, return t. */
6443 6443
6444DEFUN ("find-coding-systems-region-internal", 6444DEFUN ("find-coding-systems-region-internal",
@@ -6457,7 +6457,7 @@ DEFUN ("find-coding-systems-region-internal",
6457 if (STRINGP (start)) 6457 if (STRINGP (start))
6458 { 6458 {
6459 if (!STRING_MULTIBYTE (start) 6459 if (!STRING_MULTIBYTE (start)
6460 && XSTRING (start)->size != STRING_BYTES (XSTRING (start))) 6460 || XSTRING (start)->size == STRING_BYTES (XSTRING (start)))
6461 return Qt; 6461 return Qt;
6462 start_byte = 0; 6462 start_byte = 0;
6463 end_byte = STRING_BYTES (XSTRING (start)); 6463 end_byte = STRING_BYTES (XSTRING (start));