1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00

* process.c (status_message): Fix handling of multibyte signal

string (Bug#3499).
This commit is contained in:
Chong Yidong 2009-06-09 18:26:36 +00:00
parent 1f80c7e2bf
commit 0bcbaaaaa8
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
* process.c (status_message): Fix handling of multibyte signal
string (Bug#3499).
2009-06-09 Jim Meyering <meyering@redhat.com>
* xfaces.c (Fx_load_color_file): Avoid array bounds error if the

View file

@ -464,13 +464,15 @@ status_message (p)
if (EQ (symbol, Qsignal) || EQ (symbol, Qstop))
{
char *signame;
int c;
synchronize_system_messages_locale ();
signame = strsignal (code);
if (signame == 0)
signame = "unknown";
string = build_string (signame);
string2 = build_string (coredump ? " (core dumped)\n" : "\n");
SSET (string, 0, DOWNCASE (SREF (string, 0)));
c = STRING_CHAR ((char *) SDATA (string), 0);
Faset (string, 0, make_number (DOWNCASE (c)));
return concat2 (string, string2);
}
else if (EQ (symbol, Qexit))