* 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>.
This commit is contained in:
Ulrich Drepper 1999-01-23 22:50:17 +00:00
parent 8ba3c7d939
commit d74e76f9f6
4 changed files with 17 additions and 9 deletions

View File

@ -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>.

View 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:") },

View 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);
}

View 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 ();
}
}