aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4a1b7f3fc19..3d86f4d1052 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-02-16 Andreas Schwab <schwab@suse.de>
2
3 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4 string.
5
12009-02-16 Kenichi Handa <handa@m17n.org> 62009-02-16 Kenichi Handa <handa@m17n.org>
2 7
3 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil. 8 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
diff --git a/src/coding.c b/src/coding.c
index bd8c19f374a..fff4d01d890 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -8463,7 +8463,7 @@ START may be a string. In that case, check if the string is
8463encodable, and the value contains indices to the string instead of 8463encodable, and the value contains indices to the string instead of
8464buffer positions. END is ignored. 8464buffer positions. END is ignored.
8465 8465
8466If the current buffer (or START if it is string) is unibyte, the value 8466If the current buffer (or START if it is a string) is unibyte, the value
8467is nil. */) 8467is nil. */)
8468 (start, end, coding_system_list) 8468 (start, end, coding_system_list)
8469 Lisp_Object start, end, coding_system_list; 8469 Lisp_Object start, end, coding_system_list;
@@ -8478,7 +8478,7 @@ is nil. */)
8478 if (STRINGP (start)) 8478 if (STRINGP (start))
8479 { 8479 {
8480 if (!STRING_MULTIBYTE (start) 8480 if (!STRING_MULTIBYTE (start)
8481 && SCHARS (start) != SBYTES (start)) 8481 || SCHARS (start) == SBYTES (start))
8482 return Qnil; 8482 return Qnil;
8483 start_byte = 0; 8483 start_byte = 0;
8484 end_byte = SBYTES (start); 8484 end_byte = SBYTES (start);