From 377c725f8e2dba91af36af27206e6deb85cf6e6f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 4 Feb 2001 06:04:08 +0000 Subject: Update. * 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. --- iconv/iconv_prog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iconv') diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c index 3c7851f7a5..6b9930e50a 100644 --- a/iconv/iconv_prog.c +++ b/iconv/iconv_prog.c @@ -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) -- cgit 1.4.1