diff options
| author | Kenichi Handa | 2008-08-27 01:11:41 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-08-27 01:11:41 +0000 |
| commit | 6c0969cade7c54a5caa7763a8763babebd8ce112 (patch) | |
| tree | d1b7d17db6d8c0f3c17cd9c0c31bf2585a0380ce /src | |
| parent | f1a943aeba9aa3ae067f282a140d85a8ca474252 (diff) | |
| download | emacs-6c0969cade7c54a5caa7763a8763babebd8ce112.tar.gz emacs-6c0969cade7c54a5caa7763a8763babebd8ce112.zip | |
(report_file_error): Fix handling of multibyte error string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fileio.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c7bda92493a..259bc7f04ed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-08-27 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * fileio.c (report_file_error): Fix handling of multibyte error | ||
| 4 | string. | ||
| 5 | |||
| 1 | 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de> | 6 | 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de> |
| 2 | 7 | ||
| 3 | * xterm.c (x_term_init): Temporarily hide the partially | 8 | * xterm.c (x_term_init): Temporarily hide the partially |
diff --git a/src/fileio.c b/src/fileio.c index d289f426eb1..8eb1b3a2c87 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -261,8 +261,14 @@ report_file_error (string, data) | |||
| 261 | default: | 261 | default: |
| 262 | /* System error messages are capitalized. Downcase the initial | 262 | /* System error messages are capitalized. Downcase the initial |
| 263 | unless it is followed by a slash. */ | 263 | unless it is followed by a slash. */ |
| 264 | if (SREF (errstring, 1) != '/') | 264 | if (! EQ (Faref (errstring, make_number (1)), make_number ('/'))) |
| 265 | SSET (errstring, 0, DOWNCASE (SREF (errstring, 0))); | 265 | { |
| 266 | int c; | ||
| 267 | |||
| 268 | str = (char *) SDATA (errstring); | ||
| 269 | c = STRING_CHAR (str, 0); | ||
| 270 | Faset (errstring, 0, make_number (DOWNCASE (c))); | ||
| 271 | } | ||
| 266 | 272 | ||
| 267 | xsignal (Qfile_error, | 273 | xsignal (Qfile_error, |
| 268 | Fcons (build_string (string), Fcons (errstring, data))); | 274 | Fcons (build_string (string), Fcons (errstring, data))); |