diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/coding.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2f611365fcd..7f1b3fdf6b8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-06-28 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * coding.c (encode_coding_utf_8): Correctly count produced_chars | ||
| 4 | also in unibyte case. (Bug#17865) | ||
| 5 | |||
| 1 | 2014-06-28 K. Handa <handa@gnu.org> | 6 | 2014-06-28 K. Handa <handa@gnu.org> |
| 2 | 7 | ||
| 3 | * coding.c (MAX_CHARBUF_SIZE): Renamed from CHARBUF_SIZE. | 8 | * coding.c (MAX_CHARBUF_SIZE): Renamed from CHARBUF_SIZE. |
diff --git a/src/coding.c b/src/coding.c index 64bad7ccbe8..5dbaf96840a 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1549,8 +1549,8 @@ encode_coding_utf_8 (struct coding_system *coding) | |||
| 1549 | *dst++ = CHAR_TO_BYTE8 (c); | 1549 | *dst++ = CHAR_TO_BYTE8 (c); |
| 1550 | else | 1550 | else |
| 1551 | CHAR_STRING_ADVANCE_NO_UNIFY (c, dst); | 1551 | CHAR_STRING_ADVANCE_NO_UNIFY (c, dst); |
| 1552 | produced_chars++; | ||
| 1553 | } | 1552 | } |
| 1553 | produced_chars = dst - (coding->destination + coding->produced); | ||
| 1554 | } | 1554 | } |
| 1555 | record_conversion_result (coding, CODING_RESULT_SUCCESS); | 1555 | record_conversion_result (coding, CODING_RESULT_SUCCESS); |
| 1556 | coding->produced_char += produced_chars; | 1556 | coding->produced_char += produced_chars; |