aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorEli Zaretskii2011-04-23 13:33:28 +0300
committerEli Zaretskii2011-04-23 13:33:28 +0300
commite6c3da2065ac72cc4e1a2bef22d367cd75401892 (patch)
tree1f6fcbee1e12f63096d2221a89f5436b831862a9 /src/ChangeLog
parent4ffd0d6b569d252e4e807d4e9c9d6a5bd5b08640 (diff)
downloademacs-e6c3da2065ac72cc4e1a2bef22d367cd75401892.tar.gz
emacs-e6c3da2065ac72cc4e1a2bef22d367cd75401892.zip
Fix doprnt so it could be used safely in `verror'. (Bug#8435)
src/doprnt.c: Include limits.h. (SIZE_MAX): New macro. (doprnt): Return a size_t value. 2nd arg is now size_t. Many local variables are now size_t instead of int or unsigned. Improve overflow protection. Support `l' modifier for integer conversions. Support %l conversion. Don't assume an EMACS_INT argument for integer conversions and for %c. src/lisp.h (doprnt): Restore prototype. src/makefile.w32-in ($(BLD)/callint.$(O)): Depend on $(SRC)/character.h. src/Makefile.in (base_obj): Add back doprnt.o. src/deps.mk (doprnt.o): Add back prerequisites. (callint.o): Depend on character.h. src/eval.c (internal_lisp_condition_case): Include the handler representation in the error message. (verror): Call doprnt instead of vsnprintf. Fix an off-by-one bug when breaking from the loop. src/xdisp.c (vmessage): Call doprnt instead of vsnprintf. src/callint.c (Fcall_interactively): When displaying error message about invalid control letter, pass the character's codepoint, not a pointer to its multibyte form. Improve display of the character in octal and display also its hex code. src/character.c (char_string): Use %x to display the (unsigned) codepoint of an invalid character, to avoid displaying a bogus negative value. src/font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to `error', not SYMBOL_NAME itself. src/coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for character arguments to `error'. src/charset.c (check_iso_charset_parameter): Fix incorrect argument to `error' in error message about FINAL_CHAR argument. Make sure FINAL_CHAR is a character, and use %c when it is passed as argument to `error'.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0067163edbf..831fb6afcd0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,53 @@
12011-04-23 Eli Zaretskii <eliz@gnu.org> 12011-04-23 Eli Zaretskii <eliz@gnu.org>
2 2
3 Fix doprnt so it could be used again safely in `verror'. (Bug#8435)
4 * doprnt.c: Include limits.h.
5 (SIZE_MAX): New macro.
6 (doprnt): Return a size_t value. 2nd arg is now size_t. Many
7 local variables are now size_t instead of int or unsigned.
8 Improve overflow protection. Support `l' modifier for integer
9 conversions. Support %l conversion. Don't assume an EMACS_INT
10 argument for integer conversions and for %c.
11
12 * lisp.h (doprnt): Restore prototype.
13
14 * makefile.w32-in ($(BLD)/callint.$(O)): Depend on
15 $(SRC)/character.h.
16
17 * Makefile.in (base_obj): Add back doprnt.o.
18
19 * deps.mk (doprnt.o): Add back prerequisites.
20 (callint.o): Depend on character.h.
21
22 * eval.c (internal_lisp_condition_case): Include the handler
23 representation in the error message.
24 (verror): Call doprnt instead of vsnprintf. Fix an off-by-one bug
25 when breaking from the loop.
26
27 * xdisp.c (vmessage): Call doprnt instead of vsnprintf.
28
29 * callint.c (Fcall_interactively): When displaying error message
30 about invalid control letter, pass the character's codepoint, not
31 a pointer to its multibyte form. Improve display of the character
32 in octal and display also its hex code.
33
34 * character.c (char_string): Use %x to display the (unsigned)
35 codepoint of an invalid character, to avoid displaying a bogus
36 negative value.
37
38 * font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to
39 `error', not SYMBOL_NAME itself.
40
41 * coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for
42 character arguments to `error'.
43
44 * charset.c (check_iso_charset_parameter): Fix incorrect argument
45 to `error' in error message about FINAL_CHAR argument. Make sure
46 FINAL_CHAR is a character, and use %c when it is passed as
47 argument to `error'.
48
492011-04-23 Eli Zaretskii <eliz@gnu.org>
50
3 * s/ms-w32.h (localtime): Redirect to sys_localtime. 51 * s/ms-w32.h (localtime): Redirect to sys_localtime.
4 52
5 * w32.c: Include <time.h>. 53 * w32.c: Include <time.h>.