Mercurial > hg > xemacs-beta
comparison src/ChangeLog @ 5785:7343a186a475
Correct some partial character accounting, buffered_bytecount_to_charcount().
src/ChangeLog addition:
2014-01-23 Aidan Kehoe <kehoea@parhasard.net>
* lstream.c (Lstream_read_1):
Don't include the unread partial character in
unget_character_count, since our consumers will never be aware of it.
* text.c:
* text.c (buffered_bytecount_to_charcount):
A buffer consisting entirely of a partial character needs to be
treated as a partial last character, not a partial first
character, to avoid double-counting.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 23 Jan 2014 13:49:40 +0000 |
parents | 0cb4f494a548 |
children | 6355de501637 |
comparison
equal
deleted
inserted
replaced
5784:0cb4f494a548 | 5785:7343a186a475 |
---|---|
1 2014-01-23 Aidan Kehoe <kehoea@parhasard.net> | |
2 | |
3 * lstream.c (Lstream_read_1): | |
4 Don't include the unread partial character in | |
5 unget_character_count, since our consumers will never be aware of it. | |
6 * text.c: | |
7 * text.c (buffered_bytecount_to_charcount): | |
8 A buffer consisting entirely of a partial character needs to be | |
9 treated as a partial last character, not a partial first | |
10 character, to avoid double-counting. | |
11 | |
1 2014-01-22 Aidan Kehoe <kehoea@parhasard.net> | 12 2014-01-22 Aidan Kehoe <kehoea@parhasard.net> |
2 | 13 |
3 * text.c (buffered_bytecount_to_charcount): New. | 14 * text.c (buffered_bytecount_to_charcount): New. |
4 Return the number of characters in a coding or lstream buffer, | 15 Return the number of characters in a coding or lstream buffer, |
5 including partial characters at the beginning of the buffer, but | 16 including partial characters at the beginning of the buffer, but |