Fixes: debbugs:17865
* coding.c (encode_coding_utf_8): Correctly count produced_chars also in unibyte case.
This commit is contained in:
parent
90f33ead9b
commit
b084415e27
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2014-06-28 Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
|
||||||
|
* coding.c (encode_coding_utf_8): Correctly count produced_chars
|
||||||
|
also in unibyte case. (Bug#17865)
|
||||||
|
|
||||||
2014-06-25 Glenn Morris <rgm@gnu.org>
|
2014-06-25 Glenn Morris <rgm@gnu.org>
|
||||||
|
|
||||||
* puresize.h (BASE_PURESIZE): Increase a bit. (Bug#17846)
|
* puresize.h (BASE_PURESIZE): Increase a bit. (Bug#17846)
|
||||||
|
|
|
@ -1549,8 +1549,8 @@ encode_coding_utf_8 (struct coding_system *coding)
|
||||||
*dst++ = CHAR_TO_BYTE8 (c);
|
*dst++ = CHAR_TO_BYTE8 (c);
|
||||||
else
|
else
|
||||||
CHAR_STRING_ADVANCE_NO_UNIFY (c, dst);
|
CHAR_STRING_ADVANCE_NO_UNIFY (c, dst);
|
||||||
produced_chars++;
|
|
||||||
}
|
}
|
||||||
|
produced_chars = dst - (coding->destination + coding->produced);
|
||||||
}
|
}
|
||||||
record_conversion_result (coding, CODING_RESULT_SUCCESS);
|
record_conversion_result (coding, CODING_RESULT_SUCCESS);
|
||||||
coding->produced_char += produced_chars;
|
coding->produced_char += produced_chars;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue