]> code.delx.au - gnu-emacs/commitdiff
(decode_coding): Clear chars_at_source flag when using charbuf.
authorJason Rumney <jasonr@gnu.org>
Sat, 20 Dec 2008 08:01:12 +0000 (08:01 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 20 Dec 2008 08:01:12 +0000 (08:01 +0000)
src/ChangeLog
src/coding.c

index 08e44bd095d97159cb0b4e4b1d96136ce6365903..45c901fb342ab17833890651d6bdfacb1ec505c0 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-20  Jason Rumney  <jasonr@gnu.org>
+
+       * coding.c (decode_coding): Clear chars_at_source flag when using
+       charbuf.
+
 2008-12-19  Daniel Engeler  <engeler@gmail.com>
 
        * sysdep.c (serial_configure): Fix typo.
index e292f808597d721d243a734ec26ad02cb86ae51a..869a2715640df1fe28057dc304d8a858b1e51422 100644 (file)
@@ -6654,6 +6654,8 @@ decode_coding (coding)
             that the number of data is less than the size of
             coding->charbuf.  */
          coding->charbuf_used = 0;
+         coding->chars_at_source = 0;
+
          while (nbytes-- > 0)
            {
              int c = *src++;