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>.
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:") },
/* 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.
static void
print_and_abort ()
{
- fputs (_("memory exhausted\n"), stderr);
+ fputs (_("memory exhausted"), stderr);
+ fputc ('\n', stderr);
exit (obstack_exit_failure);
}
\f
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);
{
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 ();
}
}