Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/src/fileio.c Fri Aug 29 08:02:19 2008 +0000 +++ b/src/fileio.c Fri Aug 29 08:04:38 2008 +0000 @@ -261,7 +261,8 @@ default: /* System error messages are capitalized. Downcase the initial unless it is followed by a slash. */ - if (! EQ (Faref (errstring, make_number (1)), make_number ('/'))) + if (STRING_MULTIBYTE (errstring) + && ! EQ (Faref (errstring, make_number (1)), make_number ('/'))) { int c;