diff src/callproc.c @ 151:59463afc5666 r20-3b2

Import from CVS: tag r20-3b2
author cvs
date Mon, 13 Aug 2007 09:37:19 +0200
parents cca96a509cfe
children 3bb7ccffb0c0
line wrap: on
line diff
--- a/src/callproc.c	Mon Aug 13 09:36:20 2007 +0200
+++ b/src/callproc.c	Mon Aug 13 09:37:19 2007 +0200
@@ -143,12 +143,7 @@
 static void
 report_fork_error (char *string, Lisp_Object data)
 {
-  Lisp_Object errstring = build_string (strerror (errno));
-
-  /* System error messages are capitalized.  Downcase the initial. */
-  set_string_char (XSTRING (errstring), 0,
-		   DOWNCASE (current_buffer,
-			     string_char (XSTRING (errstring), 0)));
+  Lisp_Object errstring = lisp_strerror (errno);
 
   fork_error = Fcons (build_string (string), Fcons (errstring, data));
 
@@ -453,7 +448,7 @@
 	close (fd[0]);
 	if (fd1 >= 0)
 	  close (fd1);
-	report_file_error ("Cannot open", error_file);
+	report_file_error ("Cannot open", Fcons(error_file, Qnil));
       }
 
     fork_error = Qnil;