diff options
| author | Paul Eggert | 2014-01-25 17:20:24 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-01-25 17:20:24 -0800 |
| commit | e6f29a682914083dd1a7ed5a4391ae72b7f3e764 (patch) | |
| tree | 197cbbe9e361c1ab9f6819603bd6f36de34ce517 /src/ChangeLog | |
| parent | 0113a5e128256b6cc40a4be2536ebadd160d5d77 (diff) | |
| download | emacs-e6f29a682914083dd1a7ed5a4391ae72b7f3e764.tar.gz emacs-e6f29a682914083dd1a7ed5a4391ae72b7f3e764.zip | |
When decoding, prefer ptrdiff_t to int for buffer positions etc.
* coding.c (detect_coding_utf_8, emacs_mule_char)
(detect_coding_iso_2022, encode_coding_iso_2022, check_ascii)
(check_utf_8, decode_coding):
* coding.h (struct coding_system.errors):
Use ptrdiff_t, not int, for integer values derived from buffer and
string positions.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e875bc8a40d..96aee86932b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2014-01-26 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-01-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | When decoding, prefer ptrdiff_t to int for buffer positions etc. | ||
| 4 | * coding.c (detect_coding_utf_8, emacs_mule_char) | ||
| 5 | (detect_coding_iso_2022, encode_coding_iso_2022, check_ascii) | ||
| 6 | (check_utf_8, decode_coding): | ||
| 7 | * coding.h (struct coding_system.errors): | ||
| 8 | Use ptrdiff_t, not int, for integer values derived from buffer and | ||
| 9 | string positions. | ||
| 10 | |||
| 3 | Fix crash with insert-file-contents and misdecoded text (Bug#16286). | 11 | Fix crash with insert-file-contents and misdecoded text (Bug#16286). |
| 4 | * fileio.c (Finsert_file_contents): Set CODING_MODE_LAST_BLOCK | 12 | * fileio.c (Finsert_file_contents): Set CODING_MODE_LAST_BLOCK |
| 5 | before invoking decode_coding_gap, since there's just one block. | 13 | before invoking decode_coding_gap, since there's just one block. |