Commit 0bcbaaaa authored by Chong Yidong's avatar Chong Yidong

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

string (Bug#3499).
parent 1f80c7e2
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
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment