Reposition the call to setup_iconv() so that it gets called only once
[rsync/rsync.git] / pipe.c
diff --git a/pipe.c b/pipe.c
index 50c78c4..f3cea83 100644 (file)
--- a/pipe.c
+++ b/pipe.c
@@ -144,6 +144,7 @@ pid_t local_child(int argc, char **argv, int *f_in, int *f_out,
                        close(to_child_pipe[0]);
                if (from_child_pipe[1] != STDOUT_FILENO)
                        close(from_child_pipe[1]);
+               setup_iconv();
                child_main(argc, argv);
        }