diff options
| author | Paul Eggert | 2011-04-05 21:34:35 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-05 21:34:35 -0700 |
| commit | 06c550d2b8e71409c0bbff25f228206242d0f1b8 (patch) | |
| tree | a44d1ab37b442355d27981da19599613b5dcb53a /src | |
| parent | f390e2d53a670e4ebcb6b73f4baeaf792f46c112 (diff) | |
| download | emacs-06c550d2b8e71409c0bbff25f228206242d0f1b8.tar.gz emacs-06c550d2b8e71409c0bbff25f228206242d0f1b8.zip | |
Undo Fstring_to_unibyte change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fns.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 282b41afd3c..788defbbf60 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -6,10 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | * menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats. | 7 | * menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats. |
| 8 | 8 | ||
| 9 | * fns.c (Fstring_to_unibyte): Don't rely on undefined behavior | 9 | * lisp.h (message, message_nolog, doprnt, error, verror, fatal): |
| 10 | by passing a long int to a printf format expecting an int. | ||
| 11 | |||
| 12 | * lisp.h (message, message_nolog, doprint, error, verror, fatal): | ||
| 13 | Mark as printf-like functions. | 10 | Mark as printf-like functions. |
| 14 | 11 | ||
| 15 | * xdisp.c (vmessage): Mark as a printf-like function. | 12 | * xdisp.c (vmessage): Mark as a printf-like function. |
| @@ -1076,10 +1076,7 @@ an error is signaled. */) | |||
| 1076 | EMACS_INT converted = str_to_unibyte (SDATA (string), str, chars, 0); | 1076 | EMACS_INT converted = str_to_unibyte (SDATA (string), str, chars, 0); |
| 1077 | 1077 | ||
| 1078 | if (converted < chars) | 1078 | if (converted < chars) |
| 1079 | { | 1079 | error ("Can't convert the %dth character to unibyte", converted); |
| 1080 | long lconverted = converted; | ||
| 1081 | error ("Can't convert the %ldth character to unibyte", lconverted); | ||
| 1082 | } | ||
| 1083 | string = make_unibyte_string ((char *) str, chars); | 1080 | string = make_unibyte_string ((char *) str, chars); |
| 1084 | xfree (str); | 1081 | xfree (str); |
| 1085 | } | 1082 | } |