Mercurial > emacs
comparison src/fileio.c @ 97845:6a486cee0621
(report_file_error): Don't downcase the first character
of errstring if it is still unibyte.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Fri, 29 Aug 2008 08:04:38 +0000 |
| parents | 0d66ae50dc4e |
| children | 951870b6c085 |
comparison
equal
deleted
inserted
replaced
| 97844:8998ab68e8c4 | 97845:6a486cee0621 |
|---|---|
| 259 xsignal (Qfile_already_exists, Fcons (errstring, data)); | 259 xsignal (Qfile_already_exists, Fcons (errstring, data)); |
| 260 break; | 260 break; |
| 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 (! EQ (Faref (errstring, make_number (1)), make_number ('/'))) | 264 if (STRING_MULTIBYTE (errstring) |
| 265 && ! EQ (Faref (errstring, make_number (1)), make_number ('/'))) | |
| 265 { | 266 { |
| 266 int c; | 267 int c; |
| 267 | 268 |
| 268 str = (char *) SDATA (errstring); | 269 str = (char *) SDATA (errstring); |
| 269 c = STRING_CHAR (str, 0); | 270 c = STRING_CHAR (str, 0); |
