* iconv/iconv_prog.c (main): If output file name is "-" write to
	stdout.
	(main): If -f or -t argument is missing use charset of the current
	locale.
This commit is contained in:
Ulrich Drepper 2001-02-04 06:04:08 +00:00
parent b3c3fe4287
commit 377c725f8e
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
2001-02-03 Ulrich Drepper <drepper@redhat.com>
* iconv/iconv_prog.c (main): If -f or -t argument is missing use
charset of the current locale.
* iconv/iconv_prog.c (main): If output file name is "-" write to
stdout.
(main): If -f or -t argument is missing use charset of the current
locale.
2001-02-03 Andreas Jaeger <aj@suse.de>

View File

@ -193,7 +193,7 @@ main (int argc, char *argv[])
}
/* Determine output file. */
if (output_file != NULL)
if (output_file != NULL && strcmp (output_file, "-") != 0)
{
output = fopen (output_file, "w");
if (output == NULL)