Commit 6c0969ca authored by Kenichi Handa's avatar Kenichi Handa

(report_file_error): Fix handling of multibyte error string.

parent f1a943ae
2008-08-27 Kenichi Handa <handa@m17n.org>
* fileio.c (report_file_error): Fix handling of multibyte error
string.
2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
* xterm.c (x_term_init): Temporarily hide the partially
......
......@@ -261,8 +261,14 @@ report_file_error (string, data)
default:
/* System error messages are capitalized. Downcase the initial
unless it is followed by a slash. */
if (SREF (errstring, 1) != '/')
SSET (errstring, 0, DOWNCASE (SREF (errstring, 0)));
if (! EQ (Faref (errstring, make_number (1)), make_number ('/')))
{
int c;
str = (char *) SDATA (errstring);
c = STRING_CHAR (str, 0);
Faset (errstring, 0, make_number (DOWNCASE (c)));
}
xsignal (Qfile_error,
Fcons (build_string (string), Fcons (errstring, data)));
......
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