From d74e76f9f6b05428358a6248ac506dc38c323c7e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 23 Jan 1999 22:50:17 +0000 Subject: Update. * sunrpc/rpc_main.c (open_output): Allow better translation of error message. (close_output): Likewise. * locale/programs/localedef.c: Unify messages. * malloc/obstack.c: Likewise. Suggested by Vladimir Michl . --- sunrpc/rpc_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sunrpc') diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index 2229c564fe..aec153faaa 100644 --- a/sunrpc/rpc_main.c +++ b/sunrpc/rpc_main.c @@ -291,8 +291,7 @@ open_output (const char *infile, const char *outfile) fout = fopen (outfile, "w"); if (fout == NULL) { - fprintf (stderr, _ ("%s: unable to open "), cmdname); - perror (outfile); + fprintf (stderr, _ ("%s: unable to open %s: %m\n"), cmdname, outfile); crash (); } record_open (outfile); @@ -304,8 +303,8 @@ close_output (const char *outfile) { if (fclose (fout) == EOF) { - fprintf (stderr, _("%s: while writing output: "), cmdname); - perror (outfile ?: ""); + fprintf (stderr, _("%s: while writing output %s: %m"), cmdname, + outfile ?: ""); crash (); } } -- cgit 1.4.1