Commit a0ed9b27 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(encode_coding_raw_text): Fix last change.

parent 01d45367
......@@ -4818,6 +4818,7 @@ encode_coding_raw_text (coding)
int *charbuf_end = coding->charbuf + coding->charbuf_used;
unsigned char *dst = coding->destination + coding->produced;
unsigned char *dst_end = coding->destination + coding->dst_bytes;
int produced_chars = 0;
int c;
if (multibytep)
......@@ -4880,9 +4881,10 @@ encode_coding_raw_text (coding)
while (charbuf < charbuf_end && dst < dst_end)
*dst++ = *charbuf++;
}
produced_chars = charbuf - coding->charbuf;
}
record_conversion_result (coding, CODING_RESULT_SUCCESS);
coding->produced_char += charbuf - coding->charbuf;
coding->produced_char += produced_chars;
coding->produced = dst - coding->destination;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment