# HG changeset patch # User Jason Rumney # Date 1229759973 0 # Node ID d91e3320dd81eb84d544a63a1dd9c8a8433049fc # Parent 8f585a03d4d45c4ff121fb3441c411fb957d0de4 (decode_coding): Clear chars_at_source flag when using charbuf. diff -r 8f585a03d4d4 -r d91e3320dd81 src/coding.c --- a/src/coding.c Sat Dec 20 07:20:32 2008 +0000 +++ b/src/coding.c Sat Dec 20 07:59:33 2008 +0000 @@ -6654,6 +6654,8 @@ 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++;