summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-08-29 08:04:38 +0000
committerKenichi Handa <handa@m17n.org>2008-08-29 08:04:38 +0000
commitd5443ffda09f105132a18d4c1ee52f01046212b4 (patch)
tree1c2cce69e8e2d01abd16267ebcafe8be24a11ff1
parent94baaf4f7c2e85b951dac04c8576c3a33336ccea (diff)
downloademacs-d5443ffda09f105132a18d4c1ee52f01046212b4.tar.gz
(report_file_error): Don't downcase the first character
of errstring if it is still unibyte.
-rw-r--r--src/fileio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 8eb1b3a2c87..6b9b9afb47c 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -261,7 +261,8 @@ report_file_error (string, data)
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;