Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 23 Jan 1999 22:50:17 +0000 (22:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 23 Jan 1999 22:50:17 +0000 (22:50 +0000)
* 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 <Vladimir.Michl@upol.cz>.

ChangeLog
locale/programs/localedef.c
malloc/obstack.c
sunrpc/rpc_main.c

index 1e67612..7baae4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 1999-01-23  Ulrich Drepper  <drepper@cygnus.com>
 
+       * 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 <Vladimir.Michl@upol.cz>.
+
        * grp/putgrent.c (putgrent): Don't insert extra colon.
        Patch by Michael Schaefer <michael.schaefer@dlr.de>.
 
index 5a7035d..fc9683f 100644 (file)
@@ -92,10 +92,11 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version;
 static const struct argp_option options[] =
 {
   { NULL, 0, NULL, 0, N_("Input Files:") },
-  { "charmap", 'f', "FILE", 0,
+  { "charmap", 'f', N_("FILE"), 0,
     N_("Symbolic character names defined in FILE") },
-  { "inputfile", 'i', "FILE", 0, N_("Source definitions are found in FILE") },
-  { "repertoire-map", 'u', "FILE", 0,
+  { "inputfile", 'i', N_("FILE"), 0,
+    N_("Source definitions are found in FILE") },
+  { "repertoire-map", 'u', N_("FILE"), 0,
     N_("FILE contains mapping from symbolic names to UCS4 values") },
 
   { NULL, 0, NULL, 0, N_("Output control:") },
index 76b7a95..17c6313 100644 (file)
@@ -1,5 +1,5 @@
 /* obstack.c - subroutines used implicitly by object stack macros
-   Copyright (C) 1988,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc.
+   Copyright (C) 1988-1994,96,97,98,99 Free Software Foundation, Inc.
 
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
@@ -468,7 +468,8 @@ _obstack_memory_used (h)
 static void
 print_and_abort ()
 {
-  fputs (_("memory exhausted\n"), stderr);
+  fputs (_("memory exhausted"), stderr);
+  fputc ('\n', stderr);
   exit (obstack_exit_failure);
 }
 \f
index 2229c56..aec153f 100644 (file)
@@ -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 ?: "<stdout>");
+      fprintf (stderr, _("%s: while writing output %s: %m"), cmdname,
+              outfile ?: "<stdout>");
       crash ();
     }
 }