1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-20 20:50:53 -08:00

(Ffind_coding_systems_region_internal): Detect an

ASCII only string correctly.
This commit is contained in:
Kenichi Handa 2002-07-25 02:01:39 +00:00
parent ab2a47e1cc
commit 48468dac87
2 changed files with 5 additions and 2 deletions

View file

@ -6438,7 +6438,7 @@ char_encodable_p (c, attrs)
/* 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 @@ DEFUN ("find-coding-systems-region-internal",
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));