emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/src ChangeLog coding.c


From: Andreas Schwab
Subject: [Emacs-diffs] emacs/src ChangeLog coding.c
Date: Mon, 16 Feb 2009 13:04:16 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Andreas Schwab <schwab> 09/02/16 13:04:16

Modified files:
        src            : ChangeLog coding.c 

Log message:
        (Fcheck_coding_systems_region): Fix test for unibyte
        string.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/ChangeLog?cvsroot=emacs&r1=1.7362&r2=1.7363
http://cvs.savannah.gnu.org/viewcvs/emacs/src/coding.c?cvsroot=emacs&r1=1.415&r2=1.416

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/src/ChangeLog,v
retrieving revision 1.7362
retrieving revision 1.7363
diff -u -b -r1.7362 -r1.7363
--- ChangeLog   16 Feb 2009 12:34:05 -0000      1.7362
+++ ChangeLog   16 Feb 2009 13:04:15 -0000      1.7363
@@ -1,3 +1,8 @@
+2009-02-16  Andreas Schwab  <address@hidden>
+
+       * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
+       string.
+
 2009-02-16  Kenichi Handa  <address@hidden>
 
        * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.

Index: coding.c
===================================================================
RCS file: /sources/emacs/emacs/src/coding.c,v
retrieving revision 1.415
retrieving revision 1.416
diff -u -b -r1.415 -r1.416
--- coding.c    16 Feb 2009 11:52:57 -0000      1.415
+++ coding.c    16 Feb 2009 13:04:16 -0000      1.416
@@ -8463,7 +8463,7 @@
 encodable, and the value contains indices to the string instead of
 buffer positions.  END is ignored.
 
-If the current buffer (or START if it is string) is unibyte, the value
+If the current buffer (or START if it is a string) is unibyte, the value
 is nil.  */)
      (start, end, coding_system_list)
      Lisp_Object start, end, coding_system_list;
@@ -8478,7 +8478,7 @@
   if (STRINGP (start))
     {
       if (!STRING_MULTIBYTE (start)
-         && SCHARS (start) != SBYTES (start))
+         || SCHARS (start) == SBYTES (start))
        return Qnil;
       start_byte = 0;
       end_byte = SBYTES (start);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]