diff options
| author | Andreas Schwab | 2009-02-16 13:04:15 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2009-02-16 13:04:15 +0000 |
| commit | 4c1958f4a989f573680ff901798aa2f291fd26ce (patch) | |
| tree | 48f3de28e0613b37a7194bf9dba29608ca17942f /src/coding.c | |
| parent | a057d86adeae70d0d54a038c012f4a238d9a7a3c (diff) | |
| download | emacs-4c1958f4a989f573680ff901798aa2f291fd26ce.tar.gz emacs-4c1958f4a989f573680ff901798aa2f291fd26ce.zip | |
(Fcheck_coding_systems_region): Fix test for unibyte
string.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
| 8463 | encodable, and the value contains indices to the string instead of | 8463 | encodable, and the value contains indices to the string instead of |
| 8464 | buffer positions. END is ignored. | 8464 | buffer positions. END is ignored. |
| 8465 | 8465 | ||
| 8466 | If the current buffer (or START if it is string) is unibyte, the value | 8466 | If the current buffer (or START if it is a string) is unibyte, the value |
| 8467 | is nil. */) | 8467 | is 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); |