aboutsummaryrefslogtreecommitdiff
path: root/iconv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-04 06:04:08 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-04 06:04:08 +0000
commit377c725f8e2dba91af36af27206e6deb85cf6e6f (patch)
treea3025da6be5493c453a2fe5efc53a7872868914c /iconv
parentb3c3fe4287b866ad23c3dc24e8fa67c1d6c3f655 (diff)
downloadglibc-377c725f8e2dba91af36af27206e6deb85cf6e6f.zip
glibc-377c725f8e2dba91af36af27206e6deb85cf6e6f.tar.gz
glibc-377c725f8e2dba91af36af27206e6deb85cf6e6f.tar.bz2
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.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/iconv_prog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 3c7851f..6b9930e 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)