(report_file_error): Fix handling of multibyte error string.
This commit is contained in:
parent
f1a943aeba
commit
6c0969cade
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
10
src/fileio.c
10
src/fileio.c
|
@ -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)));
|
||||
|
|
Loading…
Add table
Reference in a new issue