X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c87ae64a826e3697cd4b848e8696636d0a2b888f..326bb56e406a0caddb3d615ced9b2c745a858707:/main.c diff --git a/main.c b/main.c index b7e6c3a4..0c5fc57d 100644 --- a/main.c +++ b/main.c @@ -20,6 +20,9 @@ */ #include "rsync.h" +#if defined CONFIG_LOCALE && defined HAVE_LOCALE_H +#include +#endif extern int verbose; extern int dry_run; @@ -1115,6 +1118,10 @@ int main(int argc,char *argv[]) * see the EPIPE. */ signal(SIGPIPE, SIG_IGN); +#if defined CONFIG_LOCALE && defined HAVE_SETLOCALE + setlocale(LC_CTYPE, ""); +#endif + /* Initialize push_dir here because on some old systems getcwd * (implemented by forking "pwd" and reading its output) doesn't * work when there are other child processes. Also, on all systems