From: Jason Rumney Date: Sat, 20 Dec 2008 08:01:12 +0000 (+0000) Subject: (decode_coding): Clear chars_at_source flag when using charbuf. X-Git-Tag: emacs-pretest-23.0.90~954 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/b2dab6c8f718458689396188f659b09571b473dc (decode_coding): Clear chars_at_source flag when using charbuf. --- diff --git a/src/ChangeLog b/src/ChangeLog index 08e44bd095..45c901fb34 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-12-20 Jason Rumney + + * coding.c (decode_coding): Clear chars_at_source flag when using + charbuf. + 2008-12-19 Daniel Engeler * sysdep.c (serial_configure): Fix typo. diff --git a/src/coding.c b/src/coding.c index e292f80859..869a271564 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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++;