* 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 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>
}
/* Determine output file. */
- if (output_file != NULL)
+ if (output_file != NULL && strcmp (output_file, "-") != 0)
{
output = fopen (output_file, "w");
if (output == NULL)