]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 1e67612a7d2e3b7195c4abcde5f6b5e9087edf88..7baae4fce5680266e0b270e1105f25a5e938299b 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 5a7035dc133ce5403218b8230205699d007a5f30..fc9683f69dc1b6e8d74e230ee57e15d5411099f7 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 76b7a95cd4c70c283bcd9fc95b429000bf8120ec..17c63134315a7a2f318fd12b2b54ea852ad88ee5 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 2229c564fecc7d4b0ed165d933b87f0afad0a3d7..aec153faaa831513673a873b844aee8b2e565ec0 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 ();
     }
 }