changeset 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 8998ab68e8c4
children f99c11da6d3f
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;